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