Retrieves the current left-to-right order of columns in a list-view control. You can send this message explicitly or use the ListView_GetColumnOrderArray macro.
Syntax
To send this message, call the SendMessage function as follows.
lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) LVM_GETCOLUMNORDERARRAY, // message ID (WPARAM) wParam, // = (WPARAM) (int) iCount; (LPARAM) lParam // = (LPARAM) (LPINT) lpiArray; );
Parameters
iCount
- Number of columns in the list-view control.
lpiArray- Pointer to an array of integers that receives 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.