GetItemRectfunction
Retrieves the bounding rectangle for the specified menu item.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
FUNCTION GetItemRect (BYVAL hwnd AS HWND, BYVAL hmenu AS HMENU, BYVAL uItem AS UINT, BYVAL prcItem AS RECT PTR) AS BOOLEAN
FUNCTION GetItemRect (BYVAL hwnd AS HWND, BYVAL hmenu AS HMENU, BYVAL uItem AS UINT, BYREF rcItem AS RECT) AS BOOLEAN
FUNCTION GetItemRect (BYVAL hWin AS HWND, BYVAL hmenu AS HMENU) AS RECT
Parameters
| Name | Description | |
|---|---|---|
hWin | Handle of the window or dialog that owns the menu. If this value is NULL and the hMenu parameter represents a popup menu, the function will find the menu window. | |
hmenu | The handle of the menu. | |
uItem | The zero-based relative position of the menu item. | |
prcItem | A pointer to a RECT structure that receives the bounding rectangle of the specified menu item expressed in screen coordinates. | |
rcItem | A RECT structure that receives the bounding rectangle of the specified menu item expressed in screen coordinates. |
Return value
If the function succeeds, the return value is 0. If the function fails, the return value is a system error code.
The third overloaded method returns a RECT structure directly.
Description
Retrieves the bounding rectangle for the specified menu item.
Reference
- Documented in Windows/WIndows Controls/CMenu Class.md
- Topic: About Menus