April 28, 2024, 12:06:49 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Contextmenu bitmaps

Started by Brian, January 30, 2024, 04:12:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

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

Egil

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
Support Amateur Radio  -  Have a ham  for dinner!

Brian

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

Egil

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
Support Amateur Radio  -  Have a ham  for dinner!

Brian

January 31, 2024, 08:33:54 AM #4 Last Edit: January 31, 2024, 10:01:11 AM by Brian
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