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.
获取列表视图控件列顺序
本文介绍如何使用 SendMessage 函数或 ListView_GetColumnOrderArray 宏来检索列表视图控件中从左到右的列顺序。通过指定参数 iCount 和 lpiArray,可以获取控件中各列的索引值。
3930

被折叠的 条评论
为什么被折叠?



