diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-04 20:56:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-04 20:56:21 +0000 |
commit | 6a992c3cc581b000faa5b8615b5b84865b4c31c4 (patch) | |
tree | 119696da78005b6c963f9a506f1e90478ca0c08a /plugins/PluginUpdater/src/Notifications.cpp | |
parent | eb9c3053eb919108153582909ab80e3b42462994 (diff) |
modeless dialog
git-svn-id: http://svn.miranda-ng.org/main/trunk@1360 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Notifications.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index ab59d5739c..2f88205946 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -19,6 +19,8 @@ Boston, MA 02111-1307, USA. #include "common.h"
+HWND hwndDialog = NULL;
+
void unzip(const TCHAR* ptszZipFile, TCHAR* ptszDestPath, TCHAR* ptszBackPath);
void PopupAction(HWND hWnd, BYTE action)
@@ -301,6 +303,7 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam switch (message) {
case WM_INITDIALOG:
+ hwndDialog = hDlg;
TranslateDialogDefault( hDlg );
SetWindowLongPtr(hDlg, GWLP_USERDATA, 0);
SendMessage(hwndList, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES);
@@ -411,6 +414,11 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam }
}
break;
+
+ case WM_DESTROY:
+ hwndDialog = NULL;
+ delete (vector<FILEINFO> *)GetWindowLongPtr(hDlg, GWLP_USERDATA);
+ break;
}
return FALSE;
|