Share via


CMenu::GetMenuItemCount

UINTGetMenuItemCount()const;

Return Value

The number of items in the menu if the function is successful; otherwise –1.

Remarks

Determines the number of items in a pop-up or top-level menu.

Example

See the example for CWnd::GetMenu.

CMenu OverviewClass MembersHierarchy Chart

See Also   CWnd::GetMenu, CMenu::GetMenuItemID, CMenu::GetSubMenu,