diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-08-06 14:29:02 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-08-06 14:29:02 +0000 |
commit | b818c0cdb9be40995c62052e921c828c42c2413f (patch) | |
tree | 410def307279ed50d7d6d64a61a0bde8e8402f42 /dbeditorpp/main_window.cpp | |
parent | 24448a12c1bff8307ebc2594d4d476052df09430 (diff) |
Svc_dbepp:
added settings sorting on column click
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@156 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'dbeditorpp/main_window.cpp')
-rw-r--r-- | dbeditorpp/main_window.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dbeditorpp/main_window.cpp b/dbeditorpp/main_window.cpp index adb551e..7ff9dc0 100644 --- a/dbeditorpp/main_window.cpp +++ b/dbeditorpp/main_window.cpp @@ -235,6 +235,11 @@ INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) CallService(MS_LANGPACK_TRANSLATEMENU,(WPARAM)GetSubMenu(hMenu,i),0);
}
+ SettingsSortParams params = {0};
+ params.hList = GetDlgItem(hwnd, IDC_SETTINGS);
+ params.column = 0;
+ ListView_SortItemsEx(params.hList, SettingsCompare, (LPARAM) ¶ms);
+
// move the dialog to the users position
MoveWindow(hwnd,DBGetContactSettingDword(NULL,modname,"x",0),DBGetContactSettingDword(NULL,modname,"y",0),DBGetContactSettingDword(NULL,modname,"width",500),DBGetContactSettingDword(NULL,modname,"height",250),0);
|