MENUEX Resource
The MENUEX resource-definition statement is an extension of the MENU resource-definition statement. In addition to the functionality offered by MENU, MENUEX allows for 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.
Syntax
menuID MENUEX { [{[MENUITEM itemText [, [id] [, [type] [, state]]]] | [POPUP itemText [, [id] [, [type] [, [state] [, helpID]]]] { popupBody }
} ...] }
Parameters
-
MENUITEM statement
-
Defines a menu item.
-
itemText
-
A string containing the text for the menu item. For more information, see MENUITEM.
-
id
-
A numeric expression indicating the identifier of the menu item.
-
type
-
A 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.
-
itemText
-
A string containing the text for the menu item.
-
id
-
A numeric expression indicating the identifier of the menu item.
-
type
-
A 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"
-
helpID
-
A numeric expression indicating the identifier used to identify the menu during WM_HELP processing.
-
popupBody
-
Contains any combination of the MENUITEM and POPUP statements.
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
MENU, MENUITEM, POPUP, ACCELERATORS, CHARACTERISTICS, DIALOG, LANGUAGE, RCDATA, STRINGTABLE, VERSION