In this installment (see here for the previous installment), we'll be fixing a few things and making the whole thing prettier.
Oddly, the Windows Forms libraries don't provide any support for writing wizards. Here's one way to do it.
CPropertySheet provides the SetWizardButtons function, allowing you to enable or disable the "Back" or "Next" buttons. It doesn't, however, allow you to disable the "Cancel" button.
Here's how:
CWnd *pCancel = GetParent()->GetDlgItem(IDCANCEL);
if (pCancel)
pCancel->EnableWindow(FALSE);
I'm adding a wizard to the program that I'm currently working on. The wizard walks the user through importing some information from a file. I'd like to be able to display the import progress as a seamless part of the wizard.