typedef struct { /* mit */
WORD mtOption;
WORD mtID;
char mtString[1];
} MENUITEMTEMPLATE;
The MENUITEMTEMPLATE structure defines a menu item in a menu template.
mtOption
Specifies a mask of one or more predefined menu options that specify the appearance of the menu item. The menu options follow:
Value | Meaning |
MF_CHECKED | Item has a check mark next to it. |
MF_GRAYED | Item is initially inactive and drawn with a gray effect. |
MF_HELP | Item has a vertical separator to its left. |
MF_MENUBARBREAK | Item is placed in a new column. The old and new columns are separated by a bar. |
MF_MENUBREAK | Item is placed in a new column. |
MF_OWNERDRAW | Owner window of the menu is responsible for drawing all visual aspects of the menu item, including highlighted, checked and inactive states. This option is not valid for an item in a menu bar. |
MF_POPUP | Item is a pop-up item (a pop-up item invokes a pop-up menu when the user chooses the item). |
mtID
Specifies the menu-item identifier of a command item (a command item sends a command message to its owner window). The MENUITEMTEMPLATE structure for a pop-up menu item does not contain the mtID member.
mtString
Specifies the null-terminated string for the menu item.
LoadMenuIndirect, MENUITEMTEMPLATEHEADER