MENUEX Resource

This resource-definition statement is an extension of the MENU resource-definition statement that additionally supports the following:

Syntax

menuID MENUEX {  [{[MENUITEM itemText [, [id] [, [type] [, state]]]] | [POPUP itemText [, [id] [, [type] [, [state] [, helpID]]]] { popupBody }

 } ...] }

Parameters

MENUITEM statement

Defines a menu item. This statement consists of the following parameters:

Value Description
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 A 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 statement

Defines a menu item that has a submenu associated with it. This statement consists of the same parameters as MENUITEM statement, as well as the following parameter:

Value Description
helpID Numeric expression indicating the identifier of the menu that is used during WM_HELP processing.

popupBody

Contains any combination of the MENUITEM and POPUP statements.

Remarks

The following valid operations can be contained in any of the numeric expressions in the statements of MENUEX:

See Also

MENU, MENUITEM, POPUP, ACCELERATORS, CHARACTERISTICS, DIALOG, LANGUAGE, RCDATA, STRINGTABLE, VERSION