summaryrefslogtreecommitdiff
path: root/plugins/Popup
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Popup')
-rw-r--r--plugins/Popup/src/main.cpp2
-rw-r--r--plugins/Popup/src/services.cpp5
-rw-r--r--plugins/Popup/src/services.h1
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__