summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-08-06 15:06:51 +0000
committermataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-08-06 15:06:51 +0000
commitf4dae906ca4f608078ea7697dbda4b4ee7821d24 (patch)
tree88dac2ec8c4623947cd4335c88e923e3f7c0c872
parentb818c0cdb9be40995c62052e921c828c42c2413f (diff)
Svc_dbepp:
removed sorting on opening dbeditor git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@157 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
-rw-r--r--dbeditorpp/headers.h7
-rw-r--r--dbeditorpp/main_window.cpp6
-rw-r--r--dbeditorpp/settinglist.cpp6
3 files changed, 5 insertions, 14 deletions
diff --git a/dbeditorpp/headers.h b/dbeditorpp/headers.h
index 4cc08e6..838d09c 100644
--- a/dbeditorpp/headers.h
+++ b/dbeditorpp/headers.h
@@ -164,11 +164,6 @@ struct WatchListArrayStruct{
};
extern WatchListArrayStruct WatchListArray;
-struct SettingsSortParams{
- HWND hList;
- int column;
-};
-
//=======================================================
// Variables
//=======================================================
@@ -269,6 +264,4 @@ void freeAllWatches();
INT_PTR CALLBACK WatchDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
void popupWatchedVar(HANDLE hContact,const char* module,const char* setting);
-INT_PTR CALLBACK SettingsCompare(LPARAM lParam1, LPARAM lParam2, LPARAM myParam);
-
#endif //_COMMONHEADERS_H \ No newline at end of file
diff --git a/dbeditorpp/main_window.cpp b/dbeditorpp/main_window.cpp
index 7ff9dc0..da58799 100644
--- a/dbeditorpp/main_window.cpp
+++ b/dbeditorpp/main_window.cpp
@@ -235,13 +235,7 @@ 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) &params);
-
// 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);
if (DBGetContactSettingByte(NULL,modname,"Maximised",0))
{
diff --git a/dbeditorpp/settinglist.cpp b/dbeditorpp/settinglist.cpp
index e3fbd7e..9225fe0 100644
--- a/dbeditorpp/settinglist.cpp
+++ b/dbeditorpp/settinglist.cpp
@@ -733,13 +733,17 @@ static int test;
void SettingsListRightClick(HWND hwnd, WPARAM wParam,LPARAM lParam);
static int lastColumn = -1;
+struct SettingsSortParams{
+ HWND hList;
+ int column;
+};
+
INT_PTR CALLBACK SettingsCompare(LPARAM lParam1, LPARAM lParam2, LPARAM myParam)
{
SettingsSortParams params = *(SettingsSortParams *) myParam;
const int maxSize = 1024;
TCHAR text1[maxSize];
TCHAR text2[maxSize];
- long value1, value2;
ListView_GetItemText(params.hList, (int) lParam1, params.column, text1, maxSize);
ListView_GetItemText(params.hList, (int) lParam2, params.column, text2, maxSize);