Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 15: Fundamental Controls


EmplSheet->SetWizardButtons(PSWIZB_NEXT);

return CPropertyPage::OnSetActive();
}


  1. 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();
}


  1. 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();
}


  1. Test the application

  2. Close it and return to MSVC


15.6 Bitmap Buttons............................................................................................

Free download pdf