PDA

View Full Version : Owner-drawn menus



Ron
October 13th, 2002, 12:55 PM
Have you found some way of doing this ? I would also be interested in this so I can support this nativly, with full credits to you of course!

-Ron

Ron
October 13th, 2002, 12:55 PM
Very cool stuff! As soon as I get some time again I'll work on this! Looking forward to your plugin.

-Ron

Snakebite
October 13th, 2002, 12:55 PM
Hello,

I'm working on a plugin to solve the problem of owner-drawn menus. Commands in such menus can not be captured and re-generated by Girder because owner-drawn menus don't work by messaging. Instead you have to generate the mouseclicks and/or keystrokes to open the menu and select the menu item. You get a menu popping up and down instead of an invisible command. That looks really bad in my eyes.

PowerDVD is my primary concern. I'm looking for more applications with this problem to test my plugin. Preferrably shareware or freeware of course.

Snakebite
October 13th, 2002, 12:55 PM
Yes I have. I wish I could take the full credit, because it's a very clever technique. The best way I found is to patch the target application's call to TrackPopupMenu in runtime. There is some example source code out there of how to patch any DLL call. E.g SYRINGE.DLL at
http://www.geocities.com/SiliconValley/1741/

Go ahead and include this in Girder. I'll finish my plugin anyway, just to learn Girder and Syringe.