IonicWind Software

IWBasic => General Questions => Topic started by: Brian on January 30, 2024, 04:12:18 AM

Title: Contextmenu bitmaps
Post by: Brian on January 30, 2024, 04:12:18 AM
Hello,

In my latest program, I have a contextmenu, which I would like to add some bitmaps to, but not having any luck so far. Anyone any ideas, or code for me to look at?

Thanks a lot, Brian
Title: Re: Contextmenu bitmaps
Post by: Egil on January 30, 2024, 05:38:29 AM
Brian,
Maybe studying Sapero's code can help you?
https://www.ionicwind.com/forums/index.php?topic=2914.msg24202#msg24202

He made version both for Aurora and EB. Just search for Office Menu


Good luck!
Egil
Title: Re: Contextmenu bitmaps
Post by: Brian on January 30, 2024, 09:49:06 AM
Egil, thanks for that. I remember seeing that yonks ago. Anyway, I have just taken another look at Sapero's code, and - no thanks! I have no idea what he is doing there

Brian
Title: Re: Contextmenu bitmaps
Post by: Egil on January 30, 2024, 12:13:55 PM
Maybe this page make things a little more understandable:
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setmenuitembitmaps

IWB doesn't work here anymore, so unable experiment myself.


Egil
Title: Re: Contextmenu bitmaps
Post by: Brian on January 31, 2024, 08:33:54 AM
Thanks, Egil,

I am already using that call successfully in my menus, but I can't seem to retrieve the handle of a Contextmenu in the Systray. Will keep looking . . .

I am using Fletchie's SysTrayIcon code

Brian