Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.14 KB

File metadata and controls

47 lines (33 loc) · 1.14 KB

Home

Function name : GetMenuItemID

Group: Menu - Library: user32


The GetMenuItemID function retrieves the menu item identifier of a menu item located at the specified position in a menu.


Code examples:

Reading the structure of VFP main menu
Accessing Adobe Reader 7.0 main menu from VFP application

Declaration:

UINT GetMenuItemID(
	HMENU hMenu,
	int nPos
);  

FoxPro declaration:

DECLARE INTEGER GetMenuItemID IN user32;
	INTEGER hMenu,;
	INTEGER nPos  

Parameters:

hMenu [in] Handle to the menu that contains the item whose identifier is to be retrieved.

nPos [in] Specifies the zero-based relative position of the menu item whose identifier is to be retrieved.


Return value:

The return value is the identifier of the specified menu item. If the menu item identifier is NULL or if the specified item opens a submenu, the return value is -1.