Rather than call OnWizardNext you should use CPropertySheet::SetWizardButtons to set button "Finish" instead of "Next" (see the example in MSDN article "CPropertySheet::SetWizardButtons"). In that case you won't be able to go to your "final dialog": either "Back" or "Finish".