Plug-in Toolbar Buttons

When adding a toolbar button (CreateToolButton Procedure), it also adds the image bmp to the main menu and to the sub-menu drop down. My image shows up three times.

Anyway to prevent the main menu from displaying my image without removing it from the sub-menu?
 
The image should be unique per menu. This depends on the index though, so if you have multiple menus with the same index you would get the same image for multiple menus.
 
What you can do is create 'dummy' menuitems. A menuitem that just creates the menu (1), then another one to create the submenu (2) and then your real menuitems (3 and up). Contact me if you want more info on this.
 
Back
Top