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

  1. // Pages.h : header file
  2. //
  3.  
  4. #ifndef __PAGES_H__
  5. #define __PAGES_H__
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CColorPage dialog
  9.  
  10. class CColorPage : public CPropertyPage
  11. {
  12.     DECLARE_DYNCREATE(CColorPage)
  13.  
  14. // Construction
  15. public:
  16.     CColorPage();
  17.     ~CColorPage();
  18.  
  19. // Dialog Data
  20.     //{{AFX_DATA(CColorPage)
  21.     enum { IDD = IDD_PAGE_COLORS };
  22.         // NOTE - ClassWizard will add data members here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code !
  24.     //}}AFX_DATA
  25.  
  26.  
  27. // Overrides
  28.     // ClassWizard generate virtual function overrides
  29.     //{{AFX_VIRTUAL(CColorPage)
  30.     protected:
  31.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. protected:
  36.     // Generated message map functions
  37.     //{{AFX_MSG(CColorPage)
  38.         // NOTE: the ClassWizard will add member functions here
  39.     //}}AFX_MSG
  40.     DECLARE_MESSAGE_MAP()
  41.  
  42. };
  43.  
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CComparePage dialog
  47.  
  48. class CComparePage : public CPropertyPage
  49. {
  50.     DECLARE_DYNCREATE(CComparePage)
  51.  
  52. // Construction
  53. public:
  54.     CComparePage();
  55.     ~CComparePage();
  56.  
  57. // Dialog Data
  58.     //{{AFX_DATA(CComparePage)
  59.     enum { IDD = IDD_PAGE_COMPARE };
  60.     CSliderCtrl    m_Slider;
  61.     BOOL    m_bIgnoreCase;
  62.     BOOL    m_bIgnoreWhiteSpace;
  63.     //}}AFX_DATA
  64.  
  65. // Attributes
  66. public:
  67.     void SetIgnoreCase(BOOL bIgnore){ m_bIgnoreCase = bIgnore; }
  68.     void SetIgnoreWhiteSpace(BOOL bIgnore)
  69.                         { m_bIgnoreWhiteSpace = bIgnore; }
  70.     void SetReadAheadOptLevel(UINT nLevel)
  71.                         { m_uReadAheadOptLevel = nLevel; }
  72.  
  73.     BOOL GetIgnoreCase() const { return m_bIgnoreCase; }
  74.     BOOL GetIgnoreWhiteSpace() const { return m_bIgnoreWhiteSpace; }
  75.     UINT GetReadAheadOptLevel() const { return m_uReadAheadOptLevel; }
  76.  
  77.  
  78. // Overrides
  79.     // ClassWizard generate virtual function overrides
  80.     //{{AFX_VIRTUAL(CComparePage)
  81.     protected:
  82.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  83.     //}}AFX_VIRTUAL
  84.  
  85. // Implementation
  86. protected:
  87.     UINT    m_uReadAheadOptLevel;
  88.     // Generated message map functions
  89.     //{{AFX_MSG(CComparePage)
  90.     virtual BOOL OnInitDialog();
  91.     //}}AFX_MSG
  92.     DECLARE_MESSAGE_MAP()
  93.  
  94. };
  95.  
  96.  
  97. /////////////////////////////////////////////////////////////////////////////
  98. // CFontPage dialog
  99.  
  100. class CFontPage : public CPropertyPage
  101. {
  102.     DECLARE_DYNCREATE(CFontPage)
  103.  
  104. // Construction
  105. public:
  106.     CFontPage();
  107.     ~CFontPage();
  108.  
  109. // Dialog Data
  110.     //{{AFX_DATA(CFontPage)
  111.     enum { IDD = IDD_PAGE_FONT };
  112.     CString    m_FontName;
  113.     CString    m_FontSize;
  114.     //}}AFX_DATA
  115.  
  116.     CHARFORMAT    m_CharacterFormat;
  117.  
  118. public:
  119.     void SetCharacterFormat(CHARFORMAT& CharFormat);
  120.     void GetCharacterFormat(CHARFORMAT& CharFormat) const ;
  121.  
  122. // Overrides
  123.     // ClassWizard generate virtual function overrides
  124.     //{{AFX_VIRTUAL(CFontPage)
  125.     protected:
  126.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  127.     //}}AFX_VIRTUAL
  128.  
  129. // Implementation
  130. protected:
  131.     // Generated message map functions
  132.     //{{AFX_MSG(CFontPage)
  133.     afx_msg void OnButtonFont();
  134.     //}}AFX_MSG
  135.     DECLARE_MESSAGE_MAP()
  136.  
  137. };
  138.  
  139.  
  140.  
  141. #endif // __PAGES_H__
  142.