diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-02 22:21:55 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-02 22:21:55 +0300 |
commit | 10091bbca1380a1d8e3b9d61b8c175490036af5b (patch) | |
tree | b08bd16212909ac1b72bfefaa70ab71b4e63974d /plugins/TopToolBar/src/toolbarwnd.cpp | |
parent | 2347a641948e9082b0e842eb0a8480abdfba09e0 (diff) |
old shit died
now there's no need to create fake services & events
Diffstat (limited to 'plugins/TopToolBar/src/toolbarwnd.cpp')
-rw-r--r-- | plugins/TopToolBar/src/toolbarwnd.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp index 8962a36af0..f02645e039 100644 --- a/plugins/TopToolBar/src/toolbarwnd.cpp +++ b/plugins/TopToolBar/src/toolbarwnd.cpp @@ -238,14 +238,11 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara /////////////////////////////////////////////////////////////////////////////////////////
-INT_PTR OnEventFire(WPARAM wParam, LPARAM)
+void CALLBACK OnEventFire()
{
- CallService(MS_SYSTEM_REMOVEWAIT, wParam, 0);
- CloseHandle((HANDLE)wParam);
-
HWND parent = pcli->hwndContactList;
if (parent == NULL) // no clist, no buttons
- return -1;
+ return;
WNDCLASS wndclass = {0};
wndclass.lpfnWndProc = TopToolBarProc;
@@ -284,8 +281,6 @@ INT_PTR OnEventFire(WPARAM wParam, LPARAM) // receive buttons
NotifyEventHooks(hTTBModuleLoaded, 0, 0);
-
- return 0;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -309,6 +304,5 @@ int LoadBackgroundOptions() GetClientRect(g_ctrl->hWnd, &rc);
InvalidateRect(g_ctrl->hWnd, &rc, TRUE);
UpdateWindow(g_ctrl->hWnd);
-
return 0;
}
|