summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-15 11:10:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-15 11:10:19 +0000
commit8e10b13b38995be8e810342d21040a4324cbfeef (patch)
treefe373e4254f152baceceb96837589a0f1fc90100 /plugins/Clist_nicer/src
parentec72adc886bfaac0cb1ed19520a555bbe0f9f1cd (diff)
nasty clutch with the custom window proc replaced with the standard mir_subclassWindow
git-svn-id: http://svn.miranda-ng.org/main/trunk@5359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src')
-rw-r--r--plugins/Clist_nicer/src/CLCButton.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Clist_nicer/src/CLCButton.cpp b/plugins/Clist_nicer/src/CLCButton.cpp
index b5c51182d6..01a0b6281d 100644
--- a/plugins/Clist_nicer/src/CLCButton.cpp
+++ b/plugins/Clist_nicer/src/CLCButton.cpp
@@ -510,16 +510,14 @@ static LRESULT CALLBACK ToolbarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
if (msg == WM_COMMAND && HIWORD(wParam) == BN_CLICKED)
SendMessage(pcli->hwndContactList, msg, wParam, lParam);
- return 0;
+ return mir_callNextSubclass(hwnd, ToolbarWndProc, msg, wParam, lParam);
}
static void CustomizeToolbar(HANDLE hButton, HWND hWnd, LPARAM)
{
// we don't customize the toolbar window, only buttons
if (hButton == TTB_WINDOW_HANDLE) {
- TTBCtrlCustomize custData = { sizeof(TTBCtrl), ToolbarWndProc };
- SendMessage(hWnd, TTB_SETCUSTOM, 0, (LPARAM)&custData);
-
+ mir_subclassWindow(hWnd, ToolbarWndProc);
InitDefaultButtons();
return;
}