An application sends an LB_GETCOUNT message to retrieve the number of items in a list box.
LB_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, or LB_ERR if an error occurs.
The returned count is one greater than the index value of the last item (the index is zero-based).
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.
List Boxes Overview, List Box Messages, LB_SETCOUNT