Log in

View Full Version : How to customize menus ?


DeepShredder
July 28th, 2002, 17:09
A good object for learning to customize menus is the link I found in this forum to a custom version of Opera :

It's better than the original version, but still, I would like to customize the drop down menus, namely, in the "Bookmarks" menu is an empty string that should be deleted but it's better to delete the "Bookmarks" menu altogether since you can do everything in the Bookmarks side panel on the left.

To delete the "Bookmarks" drop down menu, I made a dead listing of Opera.exe with WDasm32.
What should I search ?
Menuitem / Bookmarks / Popup Menu / push ???? / .... ?

Greetz ,
DeepShredder

Kayaker
August 2nd, 2002, 06:28
Modifying a menu item is always a fun exercise, do a board search for Enable Menu, MenuItem, etc. and you should find plenty of information on it. Look for a big previous project on Enabling menu items, following the techniques used in there you should have no problem. Even better, find Clandestiny's complete fine coverage on the subject of menu reversal on the main tutorial site.

You just need to find the right menu item APIs being used to draw and handle the menu bar and modify them to your liking - EnableMenuItem, GetMenuItemID, CreateMenu and other functions. They don't get created, they don't get shown...

Good Luck,
Kayaker