An application sends a LB_GETTEXTLEN message to get the length of a string in a list box.
wParam
Specifies the zero-based index of the string.
lParam
This parameter is not used.
The return value is the length of the string in characters, excluding the terminating null character. If wParam does not specify a valid index, the return value is LB_ERR.
LB_GETTEXT