Freigeben über


CMenu::GetMenuItemCount

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

UINT GetMenuItemCount( ) const;

Return Value

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

Example

See the example for CWnd::GetMenu.

Requirements

Header: afxwin.h

See Also

Concepts

CMenu Class

CMenu Members

Hierarchy Chart

CWnd::GetMenu

CMenu::GetMenuItemID

CMenu::GetSubMenu

GetMenuItemCount