Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
MENUITEM (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMENUS
typedef struct _MENUITEM { /* mi */
SHORT iPosition;
USHORT afStyle;
USHORT afAttribute;
USHORT id;
HWND hwndSubMenu;
ULONG hItem;
} MENUITEM;
The MENUITEM structure contains information about a menu item.
Field Description
────────────────────────────────────────────────────────────────────────────
iPosition Specifies the ordinal position of the item within its menu
window. If the item is part of a submenu, iPosition gives its
relative top-to-bottom and left-to-right position, with zero
being the upper left item.
afStyle Specifies the style bits of the item.
afAttribute Specifies the attribute bits of the item.
id Specifies the menu identifier.
hwndSubMenu Identifies the window of the menu window if the item is a
submenu item. Command items contain NULL in the field.
hItem Identifies the display object for the item. If the afStyle
field has the MIS_TEXT style bit set, the hItem field is NULL.
See Also
WinLoadMenu, MM_INSERTITEM, MM_QUERYITEM, MM_SETITEM
♦