MENUITEMTEMPLATE structure (winuser.h)
Defines a menu item in a menu template.
Syntax
typedef struct {
WORD mtOption;
WORD mtID;
WCHAR mtString[1];
} MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;
Members
mtOption
Type: WORD
One or more of the following predefined menu options that control the appearance of the menu item as shown in the following table.
mtID
Type: WORD
The menu item identifier of a command item; a command item sends a command message to its owner window. The MENUITEMTEMPLATE structure for an item that opens a drop-down menu or submenu does not contain the mtID member.
mtString[1]
Type: WCHAR[1]
The menu item.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | winuser.h (include Windows.h) |
See also
Conceptual
Reference