int GetMenuItemCount(hmenu) | |||||
HMENU hmenu; | /* handle of menu | */ |
The GetMenuItemCount function determines the number of items in given menu bar or pop-up menu.
hmenu
Identifies the handle of the menu to be examined.
The return value specifies the number of items in the menu if the function is successful. Otherwise, it is -1.
GetMenuItemID