MM_QUERYITEMRECT
Appearance
This message returns the bounding rectangle of a menu item.
Syntax
param1 USHORT usitem; /* Item identity. */ BOOL fIncludeSubmenus; /* Include submenus indicator. */ param2 PRECTL prect; /* Bounding rectangle of the menu item in device coordinates relative to the menu window. */
Parameters
- usitem (USHORT) - input
- Item identity.
- fIncludeSubmenus (BOOL) - input
- Include submenus indicator.
- TRUE: If the menu does not have an item with the specified identifier, search
- the submenus and subdialogs of the menu for an item with the specified identifier
- and return its state.
- FALSE: If the menu does not have an item with the specified identifier, do not
- search the submenus and subdialogs of the menu for an item with the specified
- identifier.
- TRUE: If the menu does not have an item with the specified identifier, search
- prect (PRECTL) - input
- Bounding rectangle of the menu item in device coordinates
- relative to the menu window.
Returns
- rc (BOOL) - return
- Success indicator.
- TRUE: Specified item was found.
- FALSE: Specified item was not found.
Remarks
The menu control responds to this message by returning the bounding rectangle of identified menu item.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of 0 (FALSE).