Overview
Group
Quick Info

Windows NT
Yes
Win95
Yes
Win32s
Yes
Import Library
-
Header File
winuser.h
Unicode
No
Platform Notes
None

MENUITEMTEMPLATE

The MENUITEMTEMPLATE structure defines a menu item in a menu template.

typedef struct { // mit

WORD mtOption; // menu item flags

WORD mtID; // menu item identifier (omitted for pop-up items)

WCHAR mtString[1]; // null-terminated string for menu item

} MENUITEMTEMPLATE;

Members

mtOption

Specifies one or more of the following predefined menu options that control the appearance of the menu item:

Value
Meaning
MF_CHECKED
Indicates that the menu item has a check mark next to it.
MF_GRAYED
Indicates that the menu item is initially inactive and drawn with a gray effect.
MF_HELP
Indicates that the menu item has a vertical separator to its left.
MF_MENUBARBREAK
Indicates that the menu item is placed in a new column. The old and new columns are separated by a bar.
MF_MENUBREAK
Indicates that the menu item is placed in a new column.
MF_OWNERDRAW
Indicates that the 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
Indicates that the item is one that opens a drop-down menu or submenu.

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 an item that opens a drop-down menu or submenu does not contain the mtID member.

mtString

Specifies the null-terminated string for the menu item.

See Also

LoadMenuIndirect
, MENUITEMTEMPLATEHEADER

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database