LVM_SETITEMPOSITION  P82QS9 

The LVM_SETITEMPOSITION 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_SetItemPositionFC9E5K macro.

LVM_SETITEMPOSITION

wParam = (LPARAM) (int) i;

lParam = MAKELPARAM((int) x, (int) y);

 

Parameters

i

Index of the list view item.

x and y

New position of the item s upper-left corner, in view coordinates.

 

Return Values

Returns TRUE if successful or FALSE otherwise.

Remarks

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

See Also

ListView_SetItemPosition