Aww... you're giving me headaches, phalanxii!
Unfortunately, I can't do testing myself as all PCs here at home are upgraded to Vista.
So, from what I understand, there are problems with converting a GDI+ Bitmap to a HBITMAP. But, let's say that instead of preserving transparency, would it be easier to create a color mask and create transparency by filtering out one color? Would that solve the need of using GDI+ Bitmaps? Would it be possible in fact?
UPDATE: Okay, markee and NanaFreak use exactly the same function for their Web2Live script to add new signatures to the list. They modify the image list and it works great. I try to add it to a menu item and it fails. So, maybe it's not the bitmap loading, but the bitmap drawing... I guess that we'll have to look at the 4th step, namely the the SetMenuItemInfo part. Any known issues with that bit?
UPDATE 2: Hmm... this looks like an interesting MSDN article:
Vista Style Menus. It looks like it's really caused by the menus!
After a read, I think it's clear to me that Vista causes the icons to work, while lower versions don't support it. Maybe an owner-draw could fix it... but I doubt Plus! scripts can actually handle those!
Therefore, I'd like to submit a request to Patchou:
- Make the menus of MenuButtonControls editable in run-time. Something like PlusWnd::MenuButton_SetMenu(CtrlId, MenuXML) would be great!
- Add some kind of support for images in menus. Plus! already does an owner-draw on the menu, so why can't you use that to draw images on it? You already did so with ComboBoxControls!