MyPropertyPages.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // MyPropertyPages.h : header file
  2. //
  3. #ifndef MYPROPERTYPAGES_H
  4. #define MYPROPERTYPAGES_H
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMyPropertyPage1 dialog
  7. #include "XListCtrl.h"
  8. class CMyPropertyPage1 : public CPropertyPage
  9. {
  10. DECLARE_DYNCREATE(CMyPropertyPage1)
  11. // Construction
  12. public:
  13. CMyPropertyPage1();
  14. ~CMyPropertyPage1();
  15. // Dialog Data
  16. //{{AFX_DATA(CMyPropertyPage1)
  17. enum { IDD = IDD_PAGE1 };
  18. CXListCtrl m_List;
  19. //}}AFX_DATA
  20. // Overrides
  21. // ClassWizard generate virtual function overrides
  22. //{{AFX_VIRTUAL(CMyPropertyPage1)
  23. protected:
  24. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  25. public:
  26. virtual BOOL OnSetActive();
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. protected:
  30. static int m_nColWidths[];
  31. CStringArray m_sa1, m_sa2;
  32. void FillListCtrl(CXListCtrl * pList);
  33. void InitListCtrl(CXListCtrl * pList);
  34. // Generated message map functions
  35. //{{AFX_MSG(CMyPropertyPage1)
  36. virtual BOOL OnInitDialog();
  37. afx_msg void OnSize(UINT nType, int cx, int cy);
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. };
  41. ///////////////////////////////////////////////////////////////////////////////
  42. // CMyPropertyPage2 dialog
  43. class CMyPropertyPage2 : public CPropertyPage
  44. {
  45. DECLARE_DYNCREATE(CMyPropertyPage2)
  46. // Construction
  47. public:
  48. CMyPropertyPage2();
  49. ~CMyPropertyPage2();
  50. // Dialog Data
  51. //{{AFX_DATA(CMyPropertyPage2)
  52. enum { IDD = IDD_PAGE2 };
  53. //}}AFX_DATA
  54. // Overrides
  55. // ClassWizard generate virtual function overrides
  56. //{{AFX_VIRTUAL(CMyPropertyPage2)
  57. protected:
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. public:
  60. virtual BOOL OnSetActive();
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. protected:
  64. // Generated message map functions
  65. //{{AFX_MSG(CMyPropertyPage2)
  66. virtual BOOL OnInitDialog();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. ///////////////////////////////////////////////////////////////////////////////
  71. // CMyPropertyPage3 dialog
  72. class CMyPropertyPage3 : public CPropertyPage
  73. {
  74. DECLARE_DYNCREATE(CMyPropertyPage3)
  75. // Construction
  76. public:
  77. CMyPropertyPage3();
  78. ~CMyPropertyPage3();
  79. // Dialog Data
  80. //{{AFX_DATA(CMyPropertyPage3)
  81. enum { IDD = IDD_PAGE3 };
  82. //}}AFX_DATA
  83. // Overrides
  84. // ClassWizard generate virtual function overrides
  85. //{{AFX_VIRTUAL(CMyPropertyPage3)
  86. protected:
  87. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  88. public:
  89. virtual BOOL OnSetActive();
  90. //}}AFX_VIRTUAL
  91. // Implementation
  92. protected:
  93. // Generated message map functions
  94. //{{AFX_MSG(CMyPropertyPage3)
  95. virtual BOOL OnInitDialog();
  96. //}}AFX_MSG
  97. DECLARE_MESSAGE_MAP()
  98. };
  99. #endif