MM ITEMIDFROMPOSITION
Appearance
This message returns the identity of a menu item of a specified index.
Syntax
param1 SHORT sItemIndex; /* Item index. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
Returns
- sIdentity (SHORT) - return
- Item identity.
- MIT_ERROR: Error occurred; for example, because sItemIndex is not valid.
- Other: Item identity.
Remarks
The menu control window procedure responds to this message by setting sIdentity to the identity of the item whose position is identified by the index specified in sItemIndex.
- Note
- It must be sent, not posted, to the menu control.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set sIdentity to the default value of 0.