diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-02 19:03:04 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-02 19:03:04 +0000 |
commit | 0603b6d7050a237f899d29f5557e3682447dd811 (patch) | |
tree | 8a33d8a921edf866432f677ec6794f93300b6152 /plugins/Popup | |
parent | 195e0f57ed995f77b5e7296708ecaab982533591 (diff) |
popup hiding moved in plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@15498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup')
-rw-r--r-- | plugins/Popup/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/Popup/src/services.cpp | 5 | ||||
-rw-r--r-- | plugins/Popup/src/services.h | 1 |
3 files changed, 8 insertions, 0 deletions
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__
|