Adding Commands to a Menu (C++)
To add commands to a menu
Click a menu name, for example, File.
Each menu will expand and expose a new item box for commands. For example, you can add the commands New, Open, and Close to a File menu.
In the new item box, type a name for the new menu command.
The text you type appears in both the Menu editor and in the Caption box in the Properties Window. You can edit the properties for your new menu in either location.
You can define a mnemonic key (hot key) that allows the user to select the menu command. Type an ampersand (
&) in front of a letter to specify it as the mnemonic. The user can select the menu command by typing that letter.
In the Properties window, select the menu command properties that apply. For details, see Menu Command Properties.
In the Prompt box in the Properties window, type the prompt string you want to appear in your application's status bar.
This creates an entry in the string table with the same resource identifier as the menu command you created.
Prompts can only apply to menu items with a Popup property of True. For example, top-level menu items can have prompts if they have sub-menu items. The purpose of a Prompt is to indicate what will happen if a user clicks the menu item.
Press Enter to complete the menu command.
The new item box is selected so you can create additional menu commands.