home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab05 / ex01 / pages.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  2.4 KB  |  106 lines

  1. // Pages.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "resource.h"
  6. #include "Pages.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. IMPLEMENT_DYNCREATE(CColorPage, CPropertyPage)
  14. IMPLEMENT_DYNCREATE(CComparePage, CPropertyPage)
  15. IMPLEMENT_DYNCREATE(CFontPage, CPropertyPage)
  16.  
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CColorPage property page
  20.  
  21. CColorPage::CColorPage() : CPropertyPage(CColorPage::IDD)
  22. {
  23.     //{{AFX_DATA_INIT(CColorPage)
  24.         // NOTE: the ClassWizard will add member initialization here
  25.     //}}AFX_DATA_INIT
  26. }
  27.  
  28. CColorPage::~CColorPage()
  29. {
  30. }
  31.  
  32. void CColorPage::DoDataExchange(CDataExchange* pDX)
  33. {
  34.     CPropertyPage::DoDataExchange(pDX);
  35.     //{{AFX_DATA_MAP(CColorPage)
  36.         // NOTE: the ClassWizard will add DDX and DDV calls here
  37.     //}}AFX_DATA_MAP
  38. }
  39.  
  40.  
  41. BEGIN_MESSAGE_MAP(CColorPage, CPropertyPage)
  42.     //{{AFX_MSG_MAP(CColorPage)
  43.         // NOTE: the ClassWizard will add message map macros here
  44.     //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46.  
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CComparePage property page
  50.  
  51. CComparePage::CComparePage() : CPropertyPage(CComparePage::IDD)
  52. {
  53.     //{{AFX_DATA_INIT(CComparePage)
  54.         // NOTE: the ClassWizard will add member initialization here
  55.     //}}AFX_DATA_INIT
  56. }
  57.  
  58. CComparePage::~CComparePage()
  59. {
  60. }
  61.  
  62. void CComparePage::DoDataExchange(CDataExchange* pDX)
  63. {
  64.     CPropertyPage::DoDataExchange(pDX);
  65.     //{{AFX_DATA_MAP(CComparePage)
  66.         // NOTE: the ClassWizard will add DDX and DDV calls here
  67.     //}}AFX_DATA_MAP
  68. }
  69.  
  70.  
  71. BEGIN_MESSAGE_MAP(CComparePage, CPropertyPage)
  72.     //{{AFX_MSG_MAP(CComparePage)
  73.         // NOTE: the ClassWizard will add message map macros here
  74.     //}}AFX_MSG_MAP
  75. END_MESSAGE_MAP()
  76.  
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79. // CFontPage property page
  80.  
  81. CFontPage::CFontPage() : CPropertyPage(CFontPage::IDD)
  82. {
  83.     //{{AFX_DATA_INIT(CFontPage)
  84.         // NOTE: the ClassWizard will add member initialization here
  85.     //}}AFX_DATA_INIT
  86. }
  87.  
  88. CFontPage::~CFontPage()
  89. {
  90. }
  91.  
  92. void CFontPage::DoDataExchange(CDataExchange* pDX)
  93. {
  94.     CPropertyPage::DoDataExchange(pDX);
  95.     //{{AFX_DATA_MAP(CFontPage)
  96.         // NOTE: the ClassWizard will add DDX and DDV calls here
  97.     //}}AFX_DATA_MAP
  98. }
  99.  
  100.  
  101. BEGIN_MESSAGE_MAP(CFontPage, CPropertyPage)
  102.     //{{AFX_MSG_MAP(CFontPage)
  103.         // NOTE: the ClassWizard will add message map macros here
  104.     //}}AFX_MSG_MAP
  105. END_MESSAGE_MAP()
  106.