Customizing Menus on Toolbars

Home Page (Customizing)OverviewHow 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

Customize menus or menu items

To add a default menu to a toolbar

  1. Display the toolbar you want to add a default menu to.

  2. On the Tools menu, click Customize, and then click the Commands tab.

  3. In the Categories box, click Menus.

  4. Drag the menu you want from the Commands box to the displayed toolbar.

To add a custom menu to a toolbar

  1. Display the toolbar you want to add a custom menu to.

  2. 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.

  3. In the Categories box, click New Menu. The entry New Menu appears in the Commands box.

  4. Drag New Menu from the Commands box to the displayed toolbar. Visual C++ assigns a default name, such as Custom Menu 1.

  5. 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.

  6. 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

  1. Display both the toolbar with the menu you want to move and the toolbar you want to move or copy the menu to.

  2. On the Tools menu, click Customize. The Customize dialog box must remain open; however, you might need to move it out of your way.

  3. 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

  1. Display the toolbar you want to delete a menu from.

  2. On the Tools menu, click Customize. The Customize dialog box must remain open; however, you might need to move it out of your way.

  3. 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

  1. Display the toolbar you want to restore the menu to.

  2. On the Tools menu, click Customize, and then click the Commands tab.

  3. In the Categories box, click Menus.

  4. Drag the menu you want from the Commands box to the displayed toolbar.