HICON to HBITMAP?
-
I need a HBITMAP to add a bitmap to a toolbar and menu. I can get an HICON from the .exe's that contain the images, but I'm not sure if there is a simple way to get an HBITMAP from the HICON without going through the whole bitblt process. Any idea if there is a fairly simple way to do this? Thank you, Dave
-
I need a HBITMAP to add a bitmap to a toolbar and menu. I can get an HICON from the .exe's that contain the images, but I'm not sure if there is a simple way to get an HBITMAP from the HICON without going through the whole bitblt process. Any idea if there is a fairly simple way to do this? Thank you, Dave
I am not sure, but perhaps you should have a look at the
GetIconInfo
Windows API function. This function gives you an ICONINFO struct which contains HBITMAP handles to the color and the mask bitmap. If you use GetIconInfo you have to delete the handles to the two newly created bitmaps yourself. Read MSDN for more. -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;)