GetItemTextfunction
Retrieves the text 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 GetItemText (BYVAL hMenu AS HMENU, BYVAL uItem AS DWORD, BYVAL fByPosition AS LONG, BYVAL pwszText AS WSTRING PTR, BYVAL cchTextMax AS LONG) AS BOOLEAN
FUNCTION GetItemText (BYVAL hMenu AS HMENU, BYVAL uItem AS DWORD, BYVAL fByPosition AS LONG) AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
hMenu | Handle to the menu that contains the menu item. | |
uItem | The identifier or position of the menu item to get information about. The meaning of this parameter depends on the value of fByPosition. | |
fByPosition | The meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position. | |
pwszText | Pointer to a unicode buffer that receives the text of the menu item. | |
cchTextMax | Size in characters of the pwszText buffer. |
Description
Retrieves the text of the specified menu item.
Example
DIM dwsText AS DWSTRING = CMenu.GetItemText(hMenu, 1, TRUE)
Reference
- Documented in Windows/WIndows Controls/CMenu Class.md
- Topic: About Menus