summaryrefslogtreecommitdiff
path: root/dbeditorpp/settinglist.cpp
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 /dbeditorpp/settinglist.cpp
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
Diffstat (limited to 'dbeditorpp/settinglist.cpp')
-rw-r--r--dbeditorpp/settinglist.cpp6
1 files changed, 5 insertions, 1 deletions
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);