BCGControlBar Pro for MFC
int CBCGPPopupMenu::GetMenuItemCount ( ) const

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

Returns
The number of items in the menu.