Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 963 Bytes

File metadata and controls

44 lines (30 loc) · 963 Bytes

Home

Function name : GetMenuItemCount

Group: Menu - Library: user32


The GetMenuItemCount function determines the number of items in the specified menu.


Code examples:

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

Declaration:

int GetMenuItemCount(
	HMENU hMenu
);  

FoxPro declaration:

DECLARE INTEGER GetMenuItemCount IN user32;
	INTEGER hMenu
  

Parameters:

hMenu [in] Handle to the menu to be examined.


Return value:

If the function succeeds, the return value specifies the number of items in the menu.