From 8e10b13b38995be8e810342d21040a4324cbfeef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jul 2013 11:10:19 +0000 Subject: 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 --- plugins/Clist_nicer/src/CLCButton.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Clist_nicer/src') 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; } -- cgit v1.2.3