Share via


CListBox::GetCaretIndex

intGetCaretIndex()const;

Return Value

The zero-based index of the item that has the focus rectangle in a list box. If the list box is a single-selection list box, the return value is the index of the item that is selected, if any.

Remarks

An application calls the GetCaretIndex member function to determine the index of the item that has the focus rectangle in a multiple-selection list box. The item may or may not be selected.

Example

See the example for CListBox::SetCaretIndex.

CListBox OverviewClass MembersHierarchy Chart

See Also   CListBox::SetCaretIndex,