Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

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



  1. Close it and return to MSVC

  2. Add an IDDPROPPAGE LARGE dialog. Delete its TODO line. Change its
    Caption to Personal Information and its ID to IDD_PERS_INFO

  3. Add A New Class for the new dialog box. Name it CPersonalInfo and base it on
    CPropertyPage

  4. Add another IDDPROPPAGE LARGE dialog. Delete its TODO line. Change its
    Caption to Education and Experience and its ID to IDD_EDUC_EXP

  5. Add A New Class for the new dialog box. Name it CEducExperience and base it on
    CPropertyPage

  6. Add another IDDPROPPAGE LARGE dialog. Delete its TODO line. Change its
    Caption to New Employee Survey and its ID to IDD_EMPL_SURVEY

  7. Add A New Class for the new dialog box. Name it CEmplSurvey and base it on
    CPropertyPage

  8. 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)


  1. Add A New MFC Class named CEmplAppSheet and based on CPropertySheet

  2. 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)
Free download pdf