ListView_Arrange macro

Arranges items in icon view. You can use this macro or send the LVM_ARRANGE message explicitly.

Syntax


BOOL ListView_Arrange(
   HWND hwnd,
   UINT code
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

code

Type: UINT

One of the following values that specifies alignment:

ValueMeaning
LVA_ALIGNLEFT

Not implemented. Apply the LVS_ALIGNLEFT style instead.

LVA_ALIGNTOP

Not implemented. Apply the LVS_ALIGNTOP style instead.

LVA_DEFAULT

Aligns items according to the list-view control's current alignment styles (the default value).

LVA_SNAPTOGRID

Snaps all icons to the nearest grid position.

 

Return value

Returns TRUE if successful; otherwise, FALSE.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: