BCGControlBar Pro for MFC
INT_PTR CBCGPToolbarComboBoxButton::GetCount ( ) const

Retrieves the number of items in the list box of a combo box.

The number of items. The returned count is one greater than the index value of the last item (the index is zero-based).

Call this member function to retrieve the number of items in the list-box portion of a combo box.