title: Bitmap not drawing in CFrameWnd's OnPaint
body: <p>I can't seem to get the CBitmap to actually apear on the screen... Here's the code in OnPaint:</p>
  
  <pre><code>CRect frm;
  GetClientRect(frm);
  
  CClientDC dc(this);
  //dc.FillSolidRect(CRect(0, 0, 1000, 1000), RGB(255, 255, 255));
  CDC dcMem;
  dcMem.CreateCompatibleDC(&amp;dc);
  CBitmap* cache = dcMem.SelectObject(&amp;components.icon.bmp);
  
  dc.BitBlt(0, 0, 55, 55, &amp;dcMem, 0, 0, SRCCOPY);
  dc.SelectObject(cache);
  </code></pre>
  
  <p>The definition of components.icon.bmp is...</p>
  
  <pre><code>components.icon.bmp.LoadBitmap(BMP_BOARDER);
  BITMAP icon;
  components.icon.bmp.GetBitmap(&amp;icon);
  </code></pre>
  
  <p>There shouldn't be problem here. The Bitmap is a 32bit alpha bitmap and LoadBitmap returned TRUE.</p>
  
  <p>It doesn't work with 24 bit either.</p>
  
  <p>---- Got it! Problem with my resources</p>