FindItemPosfunction
Finds the submenu and position of 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 FindItemPos (BYVAL hMenu AS HMENU, BYVAL itemID AS UINT, BYREF hMenuFound AS HMENU, BYREF itemPos AS LONG) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hMenu | A handle to the menu that contains the menu item. | |
itemID | The identifier of the menu item. | |
hMenuFound | Handle of the submenu where the item was found | |
itemPos | A variable of type LONG that receives the zero-based position of the item in the submenu. |
Return value
Returns TRUE if the function succeeds or FALSE otherwise.
Description
Recursively finds the submenu and position of the specified menu item.
Example
DIM hFoundMenu AS HMENU, itemPos AS LONG DIM bRes AS BOOLEAN = CMenu.FindItemPos(hMenu, IDM_CASCADE, hFoundMenu, itemPos) IF bRes THEN PRINT "hFoundMenu", hFoundMenu PRINT "itemPos", itemPos PRINT CMenu.GetItemID(hMenu, hFoundMenu, itemPos) END IF
Reference
- Documented in Windows/WIndows Controls/CMenu Class.md
- Topic: About Menus