NormalMenuItem

The NormalMenuItem structure contains information about each item in a menu resource that does not open a menu or a submenu.

struct NormalMenuItem {

WORD resInfo;

szOrOrd menuText;

};

Members

resInfo

A set of bit flags that specify the type of menu item. This member can be one of the following values.

Value Meaning
MFR_END The menu item is the last in this submenu or menu resource; this flag is used internally by the system.
MFR_POPUP The menu item opens a menu or a submenu; the flag is used internally by the system.

menuText

Specifies a null-terminated Unicode string that contains the text for this menu item. There is no fixed limit on the size of this string.

Remarks

There is one NormalMenuItem structure for each menu item that does not open a menu or a submenu. Indicate the last menu item on a menu by setting the resInfo member to MFR_END.

A menu separator is a special type of menu item that is inactive but appears as a dividing bar between two active menu items. Indicate a menu separator by leaving the menuText member empty.

See Also

MenuHeader, MENUITEMINFO, PopupMenuItem