LB_GETCOUNT

An application sends a LB_GETCOUNT message to retrieve the number of items in a list box.

Parameters

wParam

This parameter is not used.

lParam

This parameter is not used.

Return Value

The return value is the number of items in the list box, or LB_ERR if an error occurs.

Comments

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