Expand Minimize

ListView_GetColumnOrderArray macro

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

Syntax


BOOL ListView_GetColumnOrderArray(
  HWND hwndLV,
  int iCount,
  int *lpiArray
);

Parameters

hwndLV

Type: HWND

A handle to a list-view control.

iCount

Type: int

The number of columns in the list-view control.

lpiArray

Type: int*

A pointer to an array of integers that will receive the index values of the columns in the list-view control. The array must be large enough to hold iCount elements.

Return value

If successful, returns nonzero and the buffer at lpiArray receives the column index of each column in the control in the order they appear from left to right. Otherwise, the return value is zero.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft