From 03758f8f918f392386a1dd7a1c7a795927f8c221 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Mar 2013 11:51:00 +0000 Subject: - ME_TTB_INITBUTTONS event considered useless; - clist_modern & clist_nicer are trained to reload TTB buttons when TopToolBar plugin is loaded dynamically; - TTB processing code slightly reordered git-svn-id: http://svn.miranda-ng.org/main/trunk@3953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/toolbar.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/TopToolBar/src/toolbar.cpp') diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index 655117fc50..a0e5509ed8 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -13,7 +13,7 @@ HWND hwndContactList = 0; int nextButtonId = 200; -HANDLE hTTBModuleLoaded, hTTBInitButtons; +HANDLE hTTBModuleLoaded; static WNDPROC buttonWndProc; CRITICAL_SECTION csButtonsHook; @@ -677,8 +677,6 @@ int LoadToolbarModule() HookEvent(ME_OPT_INITIALISE, TTBOptInit); hTTBModuleLoaded = CreateHookableEvent(ME_TTB_MODULELOADED); - hTTBInitButtons = CreateHookableEvent(ME_TTB_INITBUTTONS); - SetHookDefaultForHookableEvent(hTTBInitButtons, InitInternalButtons); CreateServiceFunction("TopToolBar/AddButton", TTBAddButton); CreateServiceFunction(MS_TTB_REMOVEBUTTON, TTBRemoveButton); @@ -712,7 +710,6 @@ int LoadToolbarModule() int UnloadToolbarModule() { DestroyHookableEvent(hTTBModuleLoaded); - DestroyHookableEvent(hTTBInitButtons); DeleteObject(hBmpSeparator); DeleteCriticalSection(&csButtonsHook); -- cgit v1.2.3