CAppWizStepDlg::OnDismiss

HomeOverviewsHow Do IDetailsSample

Feature Only in Professional and Enterprise Editions   Creating a Custom AppWizard is supported only in Visual C++ Professional and Enterprise Editions. For more information, see Visual C++ Editions.

BOOL OnDismiss( );

Return Value

Nonzero if the dialog box can be dismissed; otherwise 0.

Remarks

A step’s OnDismiss member function is called by MFCAPWZ.DLL whenever a custom AppWizard user performs any action that calls CCustomAppWiz::Next or CCustomAppWiz::Back. A step’s OnDismiss member function is also called if the user clicks Finish.

Typically, you will call UpdateData(TRUE) from OnDismiss to transfer a step’s control values to the appropriate CAppWizStepDlg member variables. You should then use the CCustomAppWiz::m_Dictionary member to transfer the values to the custom AppWizard’s dictionary. The values in the dictionary are the values that the CCustomAppWiz::ProcessTemplate member function uses to map the macros it finds while parsing a custom resource template to their actual values.

If the data is invalid, your custom AppWizard can display a dialog box and return FALSE, in which case MFCAPWZ.DLL will not continue to the next step.

See Also   CAppWizStepDlg Overview, Class Members,CCustomAppWiz::Back, CCustomAppWiz::Next, CCustomAppWiz::m_Dictionary, CAppWizStepDlg::CAppWizStepDlg, CCustomAppWiz::ProcessTemplate, CCustomAppWiz, OutputStream, C Functions Exported by MFCAPWZ.DLL