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


CListBox::GetAnchorIndex

Retrieves the zero-based index of the current anchor item in the list box.

int GetAnchorIndex( ) const;

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

The index of the current anchor item, if successful; otherwise LB_ERR.

Заметки

In a multiple-selection list box, the anchor item is the first or last item in a block of contiguous selected items.

Пример

See the example for CListBox::SetAnchorIndex.

Требования

Header: afxwin.h

См. также

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

CListBox Class

CListBox Members

Hierarchy Chart

CListBox::SetAnchorIndex