summaryrefslogtreecommitdiff
path: root/plugins/Clist_blind
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-26 12:45:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-26 12:45:35 +0000
commit4e53a65b4b4c65a02b088d9cf64833b8fb125ee9 (patch)
tree156037a6e1dc2cc7ff4e3b2197dda7cb895b25e8 /plugins/Clist_blind
parente604c7be7d4ddbcecb01eb6cb2608b54e09c1743 (diff)
lag in clist_blind removed
fixes #199 git-svn-id: http://svn.miranda-ng.org/main/trunk@3293 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_blind')
-rw-r--r--plugins/Clist_blind/src/init.cpp35
1 files changed, 16 insertions, 19 deletions
diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp
index f79aea12f0..8146574a30 100644
--- a/plugins/Clist_blind/src/init.cpp
+++ b/plugins/Clist_blind/src/init.cpp
@@ -395,24 +395,21 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L
case WM_VKEYTOITEM:
{
int key = LOWORD(wParam);
- if (key == VK_LEFT || key == VK_RIGHT || key == VK_RETURN || key == VK_DELETE || key == VK_F2)
- {
+ if (key == VK_LEFT || key == VK_RIGHT || key == VK_RETURN || key == VK_DELETE || key == VK_F2) {
pfnContactListControlWndProc(hwnd, WM_KEYDOWN, key, 0);
return dat->selection;
}
- else
- {
- NMKEY nmkey;
- nmkey.hdr.hwndFrom = hwnd;
- nmkey.hdr.idFrom = GetDlgCtrlID(hwnd);
- nmkey.hdr.code = NM_KEYDOWN;
- nmkey.nVKey = key;
- nmkey.uFlags = 0;
- if (SendMessage(GetParent(hwnd), WM_NOTIFY, 0, (LPARAM) & nmkey))
- return -2;
- }
- return -1;
+
+ NMKEY nmkey;
+ nmkey.hdr.hwndFrom = hwnd;
+ nmkey.hdr.idFrom = GetDlgCtrlID(hwnd);
+ nmkey.hdr.code = NM_KEYDOWN;
+ nmkey.nVKey = key;
+ nmkey.uFlags = 0;
+ if ( SendMessage(GetParent(hwnd), WM_NOTIFY, 0, (LPARAM) & nmkey))
+ return -2;
}
+ return -1;
case WM_COMMAND:
if ((HANDLE) lParam != dat->hwnd_list || HIWORD(wParam) != LBN_SELCHANGE)
@@ -686,19 +683,19 @@ void SetGroupExpand(HWND hwnd, ClcData *tmp_dat, struct ClcGroup *group, int new
dat->need_rebuild = TRUE;
}
-void ScrollTo( HWND hwnd, ClcData *dat, int desty, int noSmooth )
+void ScrollTo(HWND hwnd, ClcData *dat, int desty, int noSmooth)
{
}
-void RecalcScrollBar( HWND hwnd, ClcData *dat )
+void RecalcScrollBar(HWND hwnd, ClcData *dat)
{
}
-void LoadClcOptions( HWND hwnd, ClcData *tmp_dat )
+void LoadClcOptions(HWND hwnd, ClcData *dat)
{
- ClcData *dat = (ClcData*)tmp_dat;
+ pfnLoadClcOptions(hwnd, dat);
- pfnLoadClcOptions(hwnd, tmp_dat);
+ dat->filterSearch = 0;
dat->rowHeight = SendMessage(dat->hwnd_list, LB_GETITEMHEIGHT, 0, 0);
}