LVM_ARRANGE (Windows CE 5.0)

Send Feedback

This message arranges items in icon view. You can send this message explicitly or by using the ListView_Arrange macro.

LVM_ARRANGE wParam=(WPARAM)(int)code;lParam= 0;

Parameters

  • code
    Specifies alignment. It is one of the following values.
    Value Description
    LVA_ALIGNLEFT Not supported.
    LVA_ALIGNTOP Not supported.
    LVA_DEFAULT Aligns items according to the list-view control current alignment styles (the default value).
    LVA_SNAPTOGRID Snaps all icons to the nearest grid position.
  • lParam
    Not used.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

Sending a LVM_ARRANGE message to a populated list-view control with either of the flags LVA_ALIGNLEFT or LVA_ALIGNTOP does not bring in any change in the way the icons are drawn. This behavior occurs regardless of whether the list view has the LVS_ICON or LVS_SMALLICON style. Whatever arrangement style selected at time of creation is what holds when the list view is populated.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

ListView_ApproximateViewRect | ListView_Arrange | List-View Controls Messages

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.