Re: Picture menus
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> Jan 08, 2007
- 566 views
Pete Stoner wrote: > > Hi y'all, > I have an Win32lib application with a hidden window which just presents a > popup > menu, this is all working fine but I want to improve the look of the menu by > adding icons so it is a picture menu. The only library I could find to do this > is xControls (version 1 - the PicMenu isn't in version 2 - I guess this could > be why! ) by Greg Haberek. This looks good but one of the menu items opens > a window and if any of the menu options use PicMenu I get a win32lib error > (version > 0.60.6) - code 425, "Held resource owner is not the actual owner". > > Does anyone know of a fix for this or is there another library I can use to > generate the picture menu? > > Regards PeteS You may wait for my mod'ed version of win32lib to be open to beta testers, it will do that job right. This could take like 10-15 days, allowing for more testing. Alternatively, you can try wrapping SetMenuItemInfo() in the Win32 API and use this to set checked and unchecked marks to the same bitmap (your own). I'll post or email the details if you are in a hurry and wish to try this approach. The API isn't very tricky really. HTH CChris