Applications can get and set the state of these attributes by sending MM_QUERYITEMATTR
and MM_SETITEMATTR messages.
These menu item attributes are available:
MIA_HILITED
The state of this attribute is TRUE,
if and only if, the item is selected.
MIA_CHECKED
If this attribute is TRUE, a check mark appears
next to the item (submenu only).
MIA_DISABLED
This
attribute is TRUE if the item is disabled and cannot be selected. The item
is drawn in a disabled state.
MIA_FRAMED
If
this attribute is TRUE, a frame is drawn around the item (top-level menu
only).
MIA_NODISMISS
If
the item is selected, the submenu remains down. A menu with this attribute
is not hidden until the application or user explicitly does so, for example
by selecting either another menu on the action bar or by pressing the escape
key.
[Back]
[Next]