diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-12 10:55:19 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-12 10:55:19 +0000 |
commit | aa2f5ce19e9565fd7d1944408f6feb2f089b5d44 (patch) | |
tree | 36d9d018b69cd366d14bd3a0f5ae8f52dab1dee5 /plugins | |
parent | 62384056910fc8fef88e1d99c62b3fe7ac313ac2 (diff) |
Toaster: optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@15331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Toaster/src/stdafx.h | 1 | ||||
-rw-r--r-- | plugins/Toaster/src/toast_event_handler.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Toaster/src/stdafx.h b/plugins/Toaster/src/stdafx.h index 57eaf9c735..5c7537641d 100644 --- a/plugins/Toaster/src/stdafx.h +++ b/plugins/Toaster/src/stdafx.h @@ -89,7 +89,6 @@ struct ClassData HANDLE handle;
WNDPROC pPopupProc;
- void *vPopupData;
ClassData(int f, HICON h = NULL) : iFlags(f), hIcon(h)
{
diff --git a/plugins/Toaster/src/toast_event_handler.cpp b/plugins/Toaster/src/toast_event_handler.cpp index fa97240d6f..63bef5e766 100644 --- a/plugins/Toaster/src/toast_event_handler.cpp +++ b/plugins/Toaster/src/toast_event_handler.cpp @@ -54,12 +54,15 @@ IFACEMETHODIMP ToastEventHandler::QueryInterface(_In_ REFIID riid, _COM_Outptr_ IFACEMETHODIMP ToastEventHandler::Invoke(_In_ IToastNotification * /*sender*/, _In_ IInspectable* /*args*/)
{
_thd->pPopupProc((HWND)this, WM_COMMAND, 0, 0);
+ delete this;
return S_OK;
}
IFACEMETHODIMP ToastEventHandler::Invoke(_In_ IToastNotification* /* sender */, _In_ IToastDismissedEventArgs* /*e*/)
{
_thd->pPopupProc((HWND)this, WM_CONTEXTMENU, 0, 0);
+ _thd->tstNotification->Hide();
+ delete this;
return S_OK;
}
|