typedef struct { /* mit */
UINT mtOption;
UINT mtID;
char mtString[1];
} MENUITEMTEMPLATE;
The MENUITEMTEMPLATE structure defines a menu item.
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 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 a top-level menu item. |
MF_POPUP | Item displays a sublist of menu items when selected. |
mtID
Specifies an identification code for a non-pop-up menu item. The MENUITEMTEMPLATE structure for a pop-up menu item does not contain the mtID member.
mtString
Specifies a null-terminated string that contains the name of the menu item.