SetBitmap fails when loading bitmap via LoadBitmapA, but not via LoadImage
<p>I have a strange problem.</p>

<p>When I run the following code, stat is true, stat2 is null, and the icon is not displayed. When I comment the one before last line, and uncomment the last, the icon is correctly displayed.</p>

<pre><code>CBitmap GreenButton;
BOOL stat = GreenButton.LoadBitmapA(IDB_GREENBUTTON);
HBITMAP hb = (HBITMAP)::LoadImage(AfxGetInstanceHandle(), "&lt;path to same bitmap in the project&gt;", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);

m_Recording.ModifyStyle(0xF, SS_BITMAP, 0);
HBITMAP stat2 = m_Recording.SetBitmap(HBITMAP(GreenButton));
//  m_Recording.SetBitmap(hb);
</code></pre>

<p>What could cause this failure?</p>