LVM_SETITEMPOSITION (Compact 2013)

3/28/2014

This message moves an item to a specified position in a list-view control, which must be in icon or small icon view. You can send this message explicitly or by using the ListView_SetItemPosition macro.

Syntax

LVM_SETITEMPOSITION wParam = (LPARAM)(int) i; 
    lParam = MAKELPARAM((int) x, (int) y );

Parameters

  • i
    Index of the list-view item.
  • xand y
    Specifies the new position of the item's upper-left corner, in view coordinates.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Related macro ListView_SetItemPosition

Requirements

Header

commctrl.h

See Also

Reference

List-View Controls Messages
ListView_SetItemPosition