Visual C++ and MFC Fundamentals Chapter 15: Fundamental Controls
EmplSheet->SetWizardButtons(PSWIZB_NEXT);
return CPropertyPage::OnSetActive();
}
- In the same way, fire the OnSetActive event of the CEducExperience class and
implement it as follows:
BOOL CEducExperience::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
CPropertySheet *EmplSheet = reinterpret_cast<CPropertySheet *>(GetParent());
EmplSheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT);
return CPropertyPage::OnSetActive();
}
- Once more fire the OnSetActive event of the CEmplSurveyclass and implement it as
follows:
BOOL CEmplSurvey::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
CPropertySheet EmplSheet = reinterpret_cast<CPropertySheet >(GetParent());
EmplSheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
return CPropertyPage::OnSetActive();
}
- Test the application
- Close it and return to MSVC