summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src/toolbar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-02 22:21:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-02 22:21:55 +0300
commit10091bbca1380a1d8e3b9d61b8c175490036af5b (patch)
treeb08bd16212909ac1b72bfefaa70ab71b4e63974d /plugins/TopToolBar/src/toolbar.cpp
parent2347a641948e9082b0e842eb0a8480abdfba09e0 (diff)
old shit died
now there's no need to create fake services & events
Diffstat (limited to 'plugins/TopToolBar/src/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp
index a8c037a7ac..ecb7db6de1 100644
--- a/plugins/TopToolBar/src/toolbar.cpp
+++ b/plugins/TopToolBar/src/toolbar.cpp
@@ -5,7 +5,7 @@ pfnCustomProc g_CustomProc = NULL;
LPARAM g_CustomProcParam = 0;
TTBCtrl *g_ctrl = NULL;
-INT_PTR OnEventFire(WPARAM wParam, LPARAM lParam);
+void CALLBACK OnEventFire();
HWND hwndContactList = 0;
@@ -575,9 +575,7 @@ static int OnModulesLoad(WPARAM, LPARAM)
ArrangeButtons();
- HANDLE hEvent = CreateEvent(NULL, TRUE, TRUE, NULL);//anonymous event
- if (hEvent != 0)
- CallService(MS_SYSTEM_WAITONHANDLE, (WPARAM)hEvent, (LPARAM)"TTB_ONSTARTUPFIRE");
+ Miranda_WaitOnHandle(OnEventFire);
if (HookEvent(ME_BACKGROUNDCONFIG_CHANGED, OnBGChange)) {
char buf[256];
@@ -662,7 +660,6 @@ int LoadToolbarModule()
CreateServiceFunction(TTB_LAUNCHSERVICE, LaunchService);
CreateServiceFunction("TopToolBar/SetCustomProc", TTBSetCustomProc);
- CreateServiceFunction("TTB_ONSTARTUPFIRE", OnEventFire);
buttonWndProc = (WNDPROC)CallService("Button/GetWindowProc", 0, 0);
WNDCLASSEX wc = {0};