Share via


MENUEX Resource (Windows Embedded CE 6.0)

1/6/2010

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

  • Help identifiers on menus.
  • Identifiers on menus.
  • Use of the MFT_* type flags and MFS_* state flags. For more information about these flags, see the MENUITEMINFO structure.
        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 Statement.

    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 Resource statements.

Remarks

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

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

See Also

Reference

MENU Statement
MENUITEM Statement
POPUP Resource
ACCELERATORS Resource
CHARACTERISTICS Statement
DIALOG Resource
LANGUAGE Statement
RCDATA Resource
STRINGTABLE Resource
VERSION Statement

Concepts

Resource-Definition Statements