diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-21 18:08:40 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-21 18:09:19 +0300 |
commit | a334516a231bc13b93e20aa59023e37d7c4ba666 (patch) | |
tree | 2bdd9b1f02df76cef33ed68002d21b3e0d5b6164 /plugins/Import/src/wizard.cpp | |
parent | f7001757a832e948645713a94739f66b07d5f2c1 (diff) |
Import: the wizard dialog to use initialization structure instead of PostMessage
Diffstat (limited to 'plugins/Import/src/wizard.cpp')
-rw-r--r-- | plugins/Import/src/wizard.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Import/src/wizard.cpp b/plugins/Import/src/wizard.cpp index f23bf6ce1b..1decf1d74f 100644 --- a/plugins/Import/src/wizard.cpp +++ b/plugins/Import/src/wizard.cpp @@ -97,6 +97,12 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP case WM_INITDIALOG:
TranslateDialogDefault(hdlg);
Window_SetIcon_IcoLib(hdlg, GetIconHandle(IDI_IMPORT));
+ hwndWizard = hdlg;
+ {
+ WizardDlgParam *param = (WizardDlgParam*)lParam;
+ if (param)
+ PostMessage(hdlg, WIZM_GOTOPAGE, param->wParam, param->lParam);
+ }
return TRUE;
case WIZM_GOTOPAGE:
|