How do you use 32-bit toolbar icons?

According to MSDN image lists support 32-bit bitmaps and icons, and 32-bit bitmaps can be opened with LoadImage by specifying LR_CREATEDIBSECTION.

However, LoadImage always fails to open a 32-bit bitmap. I can't even import it as a bitmap resource in VS2010. It opens fine in any image editor.

Two questions:

1) Why do you suppose LoadImage is failing?

2) How can I import a 32-bit bitmap as a resource (in case I need to use a different API to load the bitmap I still want it to be a resource)
Have you tried GetLastError() to see why the function says it was failing?
I remember some programs have issues with 32-bit bitmaps.
Try to change your editor.
Huh... I downloaded a program called Pixelformer, exported my bitmap from there and it seems to work now. Kind of strange that GIMP would have issues with that.

Anyway, thanks.
GIMP is one of the known programs to have this issue.
I had issues with it, too.
Sadly, what you just did is the only solution.
Topic archived. No new replies allowed.