CListBox::GetSel

int GetSel( int nIndex ) const;

Return Value

A positive number if the specified item is selected; otherwise, it is 0. The return value is LB_ERR if an error occurs.

Parameters

nIndex

Specifies the zero-based index of the item.

Remarks

Retrieves the selection state of an item. This member function works with both single- and multiple-selection list boxes.

CListBox OverviewClass MembersHierarchy Chart

See Also   LB_GETSEL, CListBox::SetSel