CListBox::GetTextLen

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

int GetTextLen(
   int nIndex 
) const;

Parameters

  • nIndex
    Specifies the zero-based index of the string.

Return Value

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.

Example

See the example for CListBox::GetText.

Requirements

Header: afxwin.h

See Also

Concepts

CListBox Class

CListBox Members

Hierarchy Chart

CListBox::GetText

LB_GETTEXTLEN