An application sends a CB_GETCOUNT message to retrieve the number of items in the list box of a combo box.
CB_GETCOUNT
wParam = 0; // not used; must be zero
lParam = 0; // not used; must be zero
This message has no parameters.
The return value is the number of items in the list box. If an error occurs, it is CB_ERR.
The index is zero-based, so the returned count is one greater than the index value of the last item.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Combo Boxes Overview, Combo Box Messages