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

  1. // Prefer.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "resource.h"
  6. #include "Prefer.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CPreferences
  15.  
  16. IMPLEMENT_DYNAMIC(CPreferences, CPropertySheet)
  17.  
  18. CPreferences::CPreferences(CWnd* pWndParent)
  19.      : CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
  20. {
  21.     // Add all of the property pages here.  Note that
  22.     // the order that they appear in here will be
  23.     // the order they appear in on screen.  By default,
  24.     // the first page of the set is the active one.
  25.     // One way to make a different property page the 
  26.     // active one is to call SetActivePage().
  27.  
  28.     AddPage(&m_ColorPage);
  29.     AddPage(&m_ComparePage);
  30.     AddPage(&m_FontPage);
  31. }
  32.  
  33. CPreferences::~CPreferences()
  34. {
  35. }
  36.  
  37.  
  38. BEGIN_MESSAGE_MAP(CPreferences, CPropertySheet)
  39.     //{{AFX_MSG_MAP(CPreferences)
  40.         // NOTE - the ClassWizard will add and remove mapping macros here.
  41.     //}}AFX_MSG_MAP
  42. END_MESSAGE_MAP()
  43.  
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CPreferences message handlers
  47.  
  48.  
  49.