Поделиться через


CListBox::GetCaretIndex

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

int GetCaretIndex( ) const;

Возвращаемое значение

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.

Заметки

The item may or may not be selected.

Пример

See the example for CListBox::SetCaretIndex.

Требования

Header: afxwin.h

См. также

Основные понятия

CListBox Class

CListBox Members

Hierarchy Chart

CListBox::SetCaretIndex

LB_GETCARETINDEX