From db4dd8cd382631cdce799b3d8f7bc1c0718e0dd3 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 30 Mar 2015 23:49:44 +0300 Subject: [PATCH] taskmgr: Set column order through listview. --- programs/taskmgr/column.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/taskmgr/column.c b/programs/taskmgr/column.c index 4fd02dd1ad0..35ba2a0b945 100644 --- a/programs/taskmgr/column.c +++ b/programs/taskmgr/column.c @@ -171,7 +171,7 @@ void AddColumns(void) InsertColumn(24, wszIOOtherBytes, LVCFMT_RIGHT, TaskManagerSettings.ColumnSizeArray[24], -1); size = SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEMCOUNT, 0, 0); - SendMessageW(hProcessPageHeaderCtrl, HDM_SETORDERARRAY, (WPARAM) size, (LPARAM) &TaskManagerSettings.ColumnOrderArray); + SendMessageW(hProcessPageListCtrl, LVM_SETCOLUMNORDERARRAY, (WPARAM) size, (LPARAM) &TaskManagerSettings.ColumnOrderArray); UpdateColumnDataHints(); }