The MENUEX  resource-definition statement is an extension of the MENU 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  
 
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