summaryrefslogtreecommitdiff
path: root/plugins/Import/src/wizard.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-02-28 16:29:34 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-02-28 16:29:34 +0000
commit33f3028e95f2810ff1c75a5813e717b48c55ec79 (patch)
tree9ed5df6c62ab4cf2b47eac0d9c6ca6da973b80e0 /plugins/Import/src/wizard.cpp
parent943d5373d87a0794aa3420ee743056e069062ebb (diff)
Import: servicemode support
git-svn-id: http://svn.miranda-ng.org/main/trunk@16370 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src/wizard.cpp')
-rw-r--r--plugins/Import/src/wizard.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Import/src/wizard.cpp b/plugins/Import/src/wizard.cpp
index c39fc91927..fc0c4a89aa 100644
--- a/plugins/Import/src/wizard.cpp
+++ b/plugins/Import/src/wizard.cpp
@@ -94,6 +94,7 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP
switch (message) {
case WM_INITDIALOG:
+ SetWindowLong(hdlg, GWL_USERDATA, lParam);
TranslateDialogDefault(hdlg);
hwndPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_WIZARDINTRO), hdlg, WizardIntroPageProc);
SetWindowPos(hwndPage, 0, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE);
@@ -158,6 +159,9 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP
DestroyWindow(hwndPage);
DestroyWindow(hdlg);
break;
+ case WM_DESTROY:
+ if (GetWindowLong(hdlg, GWL_USERDATA))
+ PostQuitMessage(0);
}
return FALSE;