This documentation is archived and is not being maintained.

CListBox::GetTextLen

Gets the length of a string in a list-box item.

int GetTextLen(
   int nIndex 
) const;

nIndex

Specifies the zero-based index of the string.

The length of the string in characters, excluding the terminating null character. If nIndex does not specify a valid index, the return value is LB_ERR.

See the example for CListBox::GetText.

Header: afxwin.h

Show: