Visual C++ and MFC Fundamentals Chapter 15: Fundamental Controls
- Close it and return to MSVC
- Add an IDDPROPPAGE LARGE dialog. Delete its TODO line. Change its
Caption to Personal Information and its ID to IDD_PERS_INFO - Add A New Class for the new dialog box. Name it CPersonalInfo and base it on
CPropertyPage - Add another IDDPROPPAGE LARGE dialog. Delete its TODO line. Change its
Caption to Education and Experience and its ID to IDD_EDUC_EXP - Add A New Class for the new dialog box. Name it CEducExperience and base it on
CPropertyPage - Add another IDDPROPPAGE LARGE dialog. Delete its TODO line. Change its
Caption to New Employee Survey and its ID to IDD_EMPL_SURVEY - Add A New Class for the new dialog box. Name it CEmplSurvey and base it on
CPropertyPage - Add an OnInitDialog event for each of the classes we have previously added to the
application (MSVC 6: display the ClassWizard, select the class such as
CCompanyForms in the Object IDs and, in the Messages list, double-click
WM_INITDIALOG. MSVC 7: in the Class View, click the class such as
CCompanyForms and, in the Properties window, click the Overrides button ;
then, in the OnInitDialog combo box, select the only item in the list)
- Add A New MFC Class named CEmplAppSheet and based on CPropertySheet
- In the header of the new property sheet class, delete the constructor that takes a null-
terminated string as argument and add the previously created property page:
#pragma once
#include "EducExperience.h"
#include "PersonalInfo.h"
#include "EmplSurvey.h"
// CEmplAppSheet
class CEmplAppSheet : public CPropertySheet
{
DECLARE_DYNAMIC(CEmplAppSheet)