MENUEX 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. It also defines the following:

  • Help identifiers on menus.
  • Identifiers on menus.
  • Use of the MFT_* type flags and MFS_* state flags. For more information on these flags, see the MENUITEMINFO structure.
menuID MENUEX{ [{[MENUITEM itemText [,[id][, [type][, state]]]] | 
    POPUP itemText [,[id][, [type][, [state][, helpID]]]] { popupBody } } . . .]}

Parameters

MENUITEM

Defines a menu item.

itemText

String containing the text for the menu item. For more information, see MENUITEM.

id

Numeric expression indicating the identifier of the menu item.

type

Numeric expression indicating the type of the menu item To use the predefined MFT_* type values, include the following statement in your .rc file: #include "winuser.h"

state

Numeric expression indicating the state of the menu item To use the predefined MFS_* state values, include the following statement in your .RC file: #include "winuser.h"

POPUP

Defines a menu item that has a submenu associated with it.

itemText

String containing the text for the menu item.

id

Numeric expression indicating the identifier of the menu item.

type

Numeric expression indicating the type of the menu item To use the predefined MFT_* type values, include the following statement in your .RC file: #include "winuser.h"

state

Numeric expression indicating the state of the menu item To use the predefined MFS_* state values, include the following statement in your .rc file: #include "winuser.h"

helpID

Numeric expression indicating the identifier used to identify the menu during WM_HELP processing.

popupBody

Contains any combination of the MENUITEM and POPUP statements.

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

Remarks

The valid arithmetic and Boolean operations that can be contained in any of the numeric expressions in the statements of MENUEX are as follows:

  • Add ('+')
  • Subtract ('-')
  • Unary minus ('-')
  • Unary NOT ('~')
  • AND ('&')
  • OR ('|')

See also

Using Menus

ACCELERATORS

CHARACTERISTICS

DIALOG

LANGUAGE

MENU

MENUITEM

POPUP

RCDATA

STRINGTABLE

VERSION