How can I obtain a HBITMAP or HICON from a Direct2D bitmap?
- by Tom
Is there any way to obtain a HBITMAP or HICON from a ID2D1Bitmap * using Direct2D? I am using this function to load the bitmap.
The reason I ask is because I am creating my level editor tool and would like to draw a PNG image on a standard button control.
I know that you can do this using GDI+:
HBITMAP hBitmap;
Gdiplus::Bitmap b(L"a.png");…