CListBox::GetCaretIndex

Determines the index of the item that has the focus rectangle in a multiple-selection list box.

int GetCaretIndex( ) 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

The item may or may not be selected.

Example

See the example for CListBox::SetCaretIndex.

Requirements

Header: afxwin.h

See Also

Reference

CListBox Class

Hierarchy Chart

CListBox::SetCaretIndex

LB_GETCARETINDEX

Other Resources

CListBox Members