Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


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

BOOL SetItemPosition( 
   int nItem, 
   POINT pt  

Index of the item whose position is to be set.


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.

Header: afxcmn.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.