From 0603b6d7050a237f899d29f5557e3682447dd811 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 2 Oct 2015 19:03:04 +0000 Subject: popup hiding moved in plugin git-svn-id: http://svn.miranda-ng.org/main/trunk@15498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/main.cpp | 2 ++ plugins/Popup/src/services.cpp | 5 +++++ plugins/Popup/src/services.h | 1 + 3 files changed, 8 insertions(+) (limited to 'plugins/Popup/src') diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp index ffb00e74bd..93dd39d3f7 100644 --- a/plugins/Popup/src/main.cpp +++ b/plugins/Popup/src/main.cpp @@ -387,6 +387,8 @@ MIRAPI int Load(void) CreateServiceFunction(MS_POPUP_UNREGISTERCLASS, Popup_UnregisterPopupClass); CreateServiceFunction(MS_POPUP_ADDPOPUPCLASS, Popup_CreateClassPopup); + CreateServiceFunction(MS_POPUP_DESTROYPOPUP, Popup_DeletePopup); + // load icons / create hook InitIcons(); HookEvent(ME_SKIN2_ICONSCHANGED, IconsChanged); diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp index 7741604aaa..b2c3887c4c 100644 --- a/plugins/Popup/src/services.cpp +++ b/plugins/Popup/src/services.cpp @@ -470,3 +470,8 @@ INT_PTR Popup_CreateClassPopup(WPARAM wParam, LPARAM lParam) return Popup_AddPopup2((WPARAM)&ppd2, pc->lParam); } + +INT_PTR Popup_DeletePopup(WPARAM, LPARAM lParam) +{ + return (INT_PTR)SendMessage((HWND)lParam, UM_DESTROYPOPUP, 0, 0); +} \ No newline at end of file diff --git a/plugins/Popup/src/services.h b/plugins/Popup/src/services.h index cea395b1bd..b47f04f397 100644 --- a/plugins/Popup/src/services.h +++ b/plugins/Popup/src/services.h @@ -51,5 +51,6 @@ INT_PTR Popup_RegisterVfx(WPARAM wParam, LPARAM lParam); INT_PTR Popup_RegisterPopupClass(WPARAM wParam, LPARAM lParam); INT_PTR Popup_UnregisterPopupClass(WPARAM wParam, LPARAM lParam); INT_PTR Popup_CreateClassPopup(WPARAM wParam, LPARAM lParam); +INT_PTR Popup_DeletePopup(WPARAM, LPARAM lParam); #endif // __services_h__ -- cgit v1.2.3