From a334516a231bc13b93e20aa59023e37d7c4ba666 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Mar 2018 18:08:40 +0300 Subject: Import: the wizard dialog to use initialization structure instead of PostMessage --- plugins/Import/src/wizard.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/Import/src/wizard.cpp') 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: -- cgit v1.2.3