title: How to convert Gdiplus::Bitmap* object into HBITMAP
body: <p>I am using MFC, now i have a bitmap object, obtained by using: </p>
  
  <pre><code>Gdiplus::Bitmap* bmp = Gdiplus::Bitmap::FromStream(pStream);
  </code></pre>
  
  <p>How to convert this bmp object into HBITMAP? I used :</p>
  
  <pre><code>HBITMAP hBitmap = NULL;
  bmp-&gt;GetHBITMAP(Color::White, &amp;hBitmap);
  </code></pre>
  
  <p>but it can't, hBitmap always return 0xcccccccc and notices that {unused=??? }. What can i do?</p>