int GetTextLen( int nIndex ) const;
nIndex
Specifies the zero-based index of the string.
Gets the length of a string in a list box item.
The length of the string in bytes, excluding the terminating null character. If nIndex does not specify a valid index, the return value is LB_ERR.
CListBox::GetText, LB_GETTEXTLEN