Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CListCtrl::SetItemPosition 

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


BOOL SetItemPosition(
   int nItem,
   POINT pt 
);

Parameters

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.

Community Additions

ADD
Show:
© 2015 Microsoft