From cbea44bfa47383acb25be005deae95dee7946dfe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Sep 2012 06:24:41 +0000 Subject: fix for Bosskey toptoolbar button git-svn-id: http://svn.miranda-ng.org/main/trunk@1698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BossKeyPlus/src/BossKey.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/BossKeyPlus/src') diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 1c6955320b..8191e6bb6f 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -29,7 +29,7 @@ //WORD g_wRefCount = 0; // reference count. when this is 0 on init, the hook is created. when this is 0 on destruction, the hook is destroyed. //#pragma data_seg() // end of shared data segment -// unique to this DLL, not to be shared +// unique to this DLL, not to be shared HINSTANCE g_hInstance; CLIST_INTERFACE *pcli; HANDLE g_hmGenMenuInit, g_hIcon, g_hMenuItem, g_hHideService, g_hIsHiddenService; @@ -747,8 +747,9 @@ int MirandaLoaded(WPARAM wParam,LPARAM lParam) g_hWinHook = SetWinEventHook(EVENT_OBJECT_CREATE, EVENT_OBJECT_SHOW, NULL, WinEventProc, GetCurrentProcessId(), 0, 0); - HookEvent(ME_OPT_INITIALISE,OptsDlgInit); - HookEvent(ME_MSG_WINDOWEVENT,MsgWinOpening); + HookEvent(ME_TTB_MODULELOADED, ModernToolbarInit); + HookEvent(ME_OPT_INITIALISE, OptsDlgInit); + HookEvent(ME_MSG_WINDOWEVENT, MsgWinOpening); HookEvent(ME_PROTO_ACCLISTCHANGED, EnumProtos); HookEvent(ME_MSG_TOOLBARLOADED, TabsrmmButtonsInit); HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed); @@ -863,7 +864,6 @@ extern "C" int __declspec(dllexport) Load(void) g_hHideService = CreateServiceFunction(MS_BOSSKEY_HIDE,BossKeyHideMiranda); // Create service HookEvent(ME_SYSTEM_MODULESLOADED,MirandaLoaded); - HookEvent(ME_TTB_MODULELOADED, ModernToolbarInit); return 0; } -- cgit v1.2.3