Skip to content

Latest commit

 

History

History
72 lines (59 loc) · 2.71 KB

File metadata and controls

72 lines (59 loc) · 2.71 KB
title Creating a Menu | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
vc.editors.menu
dev_langs
C++
helpviewer_keywords
mnemonics, associating menu items
menus, associating commands with mnemonic keys
menus, creating
ms.assetid 66f94448-9b97-4b73-bf97-10d4bf87cc65
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

Creating a Menu

Note

The Resource Window is not available in Express editions.

To create a standard menu

  1. From the View menu, click on Resource View and then right-click on the Menu heading and choose Add Resource. Choose Menu.

  2. Select the New Item box (the rectangle that contains "Type Here") on the menu bar.

    New Item box in the menu editor
    New Item Box

  3. Type a name for your new menu, for example, "File".

    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.

    Once you have given your new menu a name on the menu bar, the new-item box shifts to the right (to allow you to add another menu), and another new-item box opens below your first menu so you can add menu commands to it.

    Expanded New Item box
    New Item Box with Focus Shifted After You Type Menu Name

    [!NOTE] To create a single-item menu on the menu bar, set the Popup property to False.

For information on adding resources to managed projects, please see Resources in Desktop Apps in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see Creating Resource Files for Desktop Apps. For information on globalization and localization of resources in managed apps, see Globalizing and Localizing .NET Framework Applications.

Requirements

Win32

See Also

Menu Editor