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


CListCtrl::SetItemPosition

Moves an item to a specified position in a list view control.

BOOL SetItemPosition(
   int nItem,
   POINT pt 
);

Параметры

  • nItem
    Index of the item whose position is to be set.

  • pt
    A POINT structure specifying the new position, in view coordinates, of the item's upper-left corner.

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

Nonzero if successful; otherwise zero.

Заметки

The control must be in icon or small icon view.

If the list view control has the LVS_AUTOARRANGE style, the list view is arranged after the position of the item is set.

Пример

See the example for CListCtrl::GetItemPosition.

Требования

Header: afxcmn.h

См. также

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

CListCtrl Class

CListCtrl Members

Hierarchy Chart

CListCtrl::GetItemPosition

CListCtrl::GetOrigin