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/ExternalAPI/m_toptoolbar.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_toptoolbar.h b/plugins/ExternalAPI/m_toptoolbar.h index 4b037a3168..fc4399f5f7 100644 --- a/plugins/ExternalAPI/m_toptoolbar.h +++ b/plugins/ExternalAPI/m_toptoolbar.h @@ -161,22 +161,13 @@ struct TTBCtrl BOOL bHardUpdate; // clist modern requires to delete buttons to update them SortedList* pButtonList; - - LRESULT lResult; // custom window proc result - WNDPROC fnWindowProc; // custom window proc -}; - -struct TTBCtrlCustomize -{ - size_t cbLen; // total length of the internal data structure - WNDPROC fnWindowProc; // subclassed windows procedure for the custom button }; // Sets the custom painting procedure for a toolbar // wParam = not used -// lParam = TTBCtrlCustomize* +// lParam = size_t: size of new data block (published from TTBCtrl) // Usage: SendMessage(hwndToolbar, TTB_SETCUSTOM, 0, (LPARAM)&CustomData); // Only works on TopToolbars -#define TTB_SETCUSTOM (WM_USER+1) +#define TTB_SETCUSTOMDATASIZE (WM_USER+1) #endif -- cgit v1.2.3