title: MSDN SetBitmap doesn't work, CButton shows up blank
body: <p>I'm trying to create a button with a bmp image taken from the resources using <code>CButton::SetBitmap()</code>. Using this code:</p>
  
  <pre><code>BOOL MyDialog::OnInitDialog()
  {
      __super::OnInitDialog();
  
      m_myBitmap=::LoadBitmap(AfxGetResourceHandle(),MAKEINTRESOURCE(IDC_MY_BITMAP ));
      m_myButton.SetBitmap( m_myBitmap );
  
      return TRUE;
  }
  </code></pre>
  
  <p>But the button shows up gray with no image on it. I verified if my bitmap loaded correctly with GDIPlus saving it into a jpeg and everything seems fine. Why isn't the image showing up on the button?</p>