Düzenle

Aracılığıyla paylaş


ListView_SetColumnOrderArray macro (commctrl.h)

Sets the left-to-right order of columns in a list-view control. You can use this macro or send the LVM_SETCOLUMNORDERARRAY message explicitly.

Syntax

BOOL ListView_SetColumnOrderArray(
   HWND hwnd,
   int  iCount,
   int  *pi
);

Parameters

hwnd

Type: HWND

A handle to a list-view control.

iCount

Type: int

The number of columns in the list-view control.

pi

Type: int*

A pointer to an array specifying the order in which columns should be displayed, from left to right. For example, if the contents of the array are {2,0,1}, the control displays column 2, column 0, and column 1, from left to right.

Return value

Type: BOOL

No return value.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h