diff options
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);
|