The MENU resource-definition statement specifies 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 . . . }
Statement | Description |
---|---|
CHARACTERISTICS dword | User-defined information about a resource that can be used by tools that read and write resource files. |
LANGUAGE language, sublanguage | Specifies the language for the resource. The parameters are constants from WINNT.H. |
VERSION dword | User-defined version number for the resource that can be used by tools that read and write resource files. |
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
}
MENUEX, MENUITEM, POPUP, ACCELERATORS, CHARACTERISTICS, DIALOG, LANGUAGE, RCDATA, STRINGTABLE, VERSION