Customizing Menus on Toolbars
Home Page (Customizing) | Overview | How Do I ... Topics
You can move or copy a menu to a toolbar or from one toolbar to another. You can also add an existing menu to a toolbar, create a new menu on a toolbar, or delete a menu from a toolbar.
What do you want to do?
Add a default menu to a toolbar
Add a custom menu to a toolbar
Move or copy a menu from one toolbar to another
Delete a menu from a toolbar
Restore a deleted default menu to a toolbar
To add a default menu to a toolbar
Display the toolbar you want to add a default menu to.
On the Tools menu, click Customize, and then click the Commands tab.
In the Categories box, click Menus.
Drag the menu you want from the Commands box to the displayed toolbar.
To add a custom menu to a toolbar
Display the toolbar you want to add a custom menu to.
On the Tools menu, click Customize, and then click the Commands tab. The Customize dialog box must remain open; however, you might need to move it out of your way.
In the Categories box, click New Menu. The entry New Menu appears in the Commands box.
Drag New Menu from the Commands box to the displayed toolbar. Visual C++ assigns a default name, such as Custom Menu 1.
To rename the new menu, right-click the name on the toolbar, and then click Button Appearance. Type the new menu name in the Button Text box. To specify a letter as the accelerator key, insert an ampersand before the letter.
To add a command to the custom menu, click the custom menu name on the toolbar to display an empty box. Click a category for the command in the Categories box, and then drag the command from the Commands box to the empty box in the custom menu.
To move or copy a menu from one toolbar to another
Display both the toolbar with the menu you want to move and the toolbar you want to move or copy the menu to.
On the Tools menu, click Customize. The Customize dialog box must remain open; however, you might need to move it out of your way.
To move a menu, click the menu on the toolbar, and drag it to the new location on the same toolbar or another toolbar. To copy a menu, hold down the CTRL key and drag the menu on the toolbar to a new location.
To delete a menu from a toolbar
Display the toolbar you want to delete a menu from.
On the Tools menu, click Customize. The Customize dialog box must remain open; however, you might need to move it out of your way.
Drag the menu you want to delete off the toolbar.
Tip When you delete a default menu, the menu is still available in the Customize dialog box (Commands tab, Menus category). However, when you delete a custom menu, it is permanently deleted. To remove and save a custom menu for later use, create a toolbar for storing unused menus, move the menu to this storage toolbar, and then hide the storage toolbar.
To restore a deleted default menu to a toolbar
Display the toolbar you want to restore the menu to.
On the Tools menu, click Customize, and then click the Commands tab.
In the Categories box, click Menus.
Drag the menu you want from the Commands box to the displayed toolbar.