GetMenuItemCount

  int GetMenuItemCount(hmenu)    
  HMENU hmenu; /* handle of menu */

The GetMenuItemCount function determines the number of items in given menu bar or pop-up menu.

Parameters

hmenu

Identifies the handle of the menu to be examined.

Return Value

The return value specifies the number of items in the menu if the function is successful. Otherwise, it is -1.

See Also

GetMenuItemID