Partager via


CComboBox::GetLBTextLen

Gets the length of a string in the list box of a combo box.

int GetLBTextLen( 
   int nIndex  
) const;

Parameters

  • nIndex
    Contains the zero-based index of the list-box string.

Return Value

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

Example

See the example for CComboBox::GetLBText.

Requirements

Header: afxwin.h

See Also

Reference

CComboBox Class

Hierarchy Chart

CComboBox::GetLBText

CB_GETLBTEXTLEN