The GetMenuItemID function retrieves the menu item identifier of a menu item located at the specified position in a menu.
Reading the structure of VFP main menu
Accessing Adobe Reader 7.0 main menu from VFP application
UINT GetMenuItemID(
HMENU hMenu,
int nPos
); DECLARE INTEGER GetMenuItemID IN user32;
INTEGER hMenu,;
INTEGER nPos 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.
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.
Home