summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-24 20:30:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-24 20:30:01 +0000
commitedc889e1188d25838da939e0ec49f057ec7ee99e (patch)
tree56cadfd1630f3ea5d4fa9ff7ac9876d3f4ad4847 /plugins/Popup/src/main.cpp
parent2c554f869eee8d765505db837da3989271169f27 (diff)
ME_POPUP_FILTER - popup filtering event
git-svn-id: http://svn.miranda-ng.org/main/trunk@6218 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/main.cpp')
-rw-r--r--plugins/Popup/src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp
index 58d9c1ba94..6761a28fae 100644
--- a/plugins/Popup/src/main.cpp
+++ b/plugins/Popup/src/main.cpp
@@ -27,6 +27,7 @@ WORD SETTING_MAXIMUMWIDTH_MAX = GetSystemMetrics(SM_CXSCREEN);
#define MENUCOMMAND_HISTORY "Popup/ShowHistory"
#define MENUCOMMAND_SVC "Popup/EnableDisableMenuCommand"
+HANDLE hEventNotify;
//===== MessageBoxes =====
//void MB(char*); //This one is for Debug purposes
@@ -379,6 +380,8 @@ MIRAPI int Load(void)
LoadOptions();
//Service Functions
+ hEventNotify = CreateHookableEvent(ME_POPUP_FILTER);
+
CreateServiceFunction(MS_POPUP_ADDPOPUP, Popup_AddPopup);
CreateServiceFunction(MS_POPUP_ADDPOPUPW, Popup_AddPopupW);
CreateServiceFunction(MS_POPUP_ADDPOPUP2, Popup_AddPopup2);
@@ -435,7 +438,9 @@ MIRAPI int Unload(void)
FreeLibrary(hMsimgDll);
FreeLibrary(hGdiDll);
- if (PopupOptions.SkinPack) mir_free(PopupOptions.SkinPack);
+ DestroyHookableEvent(hEventNotify);
+
+ mir_free(PopupOptions.SkinPack);
mir_free(PopupOptions.Effect);
OptAdv_UnregisterVfx();