What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [PROBLEM] Icons in menu have black backgrounds on XP

[PROBLEM] Icons in menu have black backgrounds on XP
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
O.P. RE: [PROBLEM] Icons in menu have black backgrounds on XP
Aww... you're giving me headaches, phalanxii! :P
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? :P

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? ^o)

UPDATE 2: Hmm... this looks like an interesting MSDN article: Vista Style Menus. It looks like it's really caused by the menus! :O

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! ;)

This post was edited on 01-05-2008 at 02:49 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-05-2008 11:19 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[PROBLEM] Icons in menu have black backgrounds on XP - by Matti on 01-04-2008 at 04:04 PM
RE: [PROBLEM] Icons in menu have black backgrounds on XP - by phalanxii on 01-05-2008 at 06:10 AM
RE: [PROBLEM] Icons in menu have black backgrounds on XP - by Matti on 01-05-2008 at 11:19 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On