Skip to content

Latest commit

 

History

History
116 lines (81 loc) · 3.43 KB

menu-resource.md

File metadata and controls

116 lines (81 loc) · 3.43 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date
MENU resource
Defines the contents of a menu resource. | MENU resource
fcb420b6-d42e-4044-89ee-028eed1f21ee
MENU resource Menus and Other Resources
apiref
MENU
NA
reference
05/31/2018

MENU resource

Defines the contents of a menu resource. A menu resource is a collection of information that defines the appearance and function of an application menu. A menu is a special input tool that lets a user select commands and open submenus from a list of menu items.

menuID MENU  [optional-statements]  {item-definitions ... }

Parameters

menuID

Number that identifies the menu. This value is either a unique string or a unique 16-bit unsigned integer value in the range of 1 to 65,535.

optional-statements

This parameter can be zero of more of the following statements.

Statement Description
CHARACTERISTICS dword User-defined information about a resource that can be used by tools that read and write resource files. For more information, see CHARACTERISTICS.
LANGUAGE language, sublanguage Language for the resource. For more information, see LANGUAGE.
VERSION dword User-defined version number for the resource that can be used by tools that read and write resource files. For more information, see VERSION.

 

Certain attributes are also supported for backward compatibility. For more information, see Common Resource Attributes.

Examples

The following is an example of a complete MENU statement:

sample MENU
{
     MENUITEM "&Soup", 100
     MENUITEM "S&alad", 101
     POPUP "&Entree"
     {
          MENUITEM "&Fish", 200
          MENUITEM "&Chicken", 201, CHECKED
          POPUP "&Beef"
          {
               MENUITEM "&Steak", 301
               MENUITEM "&Prime Rib", 302
          }
     }
     MENUITEM "&Dessert", 103
}

See also

Using Menus

ACCELERATORS

CHARACTERISTICS

LANGUAGE

MENUEX

MENUITEM

POPUP

RCDATA

STRINGTABLE

VERSION