Re: Picture menus
- Posted by Pete Stoner <stoner.pete at gmail.com> Jan 08, 2007
- 570 views
CChris wrote: > > 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 Thanks, I would like try wrapping the API myself, but the ways things are at the moment I doubt if I would have the time to figure it all out from scratch, so if you do have any info on it then I'll be glad for the help.. Otherwise I'll wait for your win32lib enhancements.. PeteS