다음을 통해 공유


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

Reference

CListBox Class

Hierarchy Chart

CListBox::GetText

LB_GETTEXTLEN

Other Resources

CListBox Members