Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.4 KiB

  1. // regsheet.h : header file
  2. //
  3. #ifndef _REG_SHEET_H_
  4. #define _REG_SHEET_H_
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CRegPropertySheet
  7. class CRegPropertySheet : public CPropertySheet
  8. {
  9. DECLARE_DYNAMIC(CRegPropertySheet)
  10. // Construction
  11. public:
  12. CRegPropertySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  13. CRegPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  14. // Attributes
  15. public:
  16. // Operations
  17. public:
  18. // Overrides
  19. // ClassWizard generated virtual function overrides
  20. //{{AFX_VIRTUAL(CRegPropertySheet)
  21. //}}AFX_VIRTUAL
  22. // Implementation
  23. public:
  24. virtual ~CRegPropertySheet();
  25. // Generated message map functions
  26. protected:
  27. //{{AFX_MSG(CRegPropertySheet)
  28. afx_msg void OnApplyNow();
  29. afx_msg void OnOK();
  30. afx_msg void OnCancel();
  31. //}}AFX_MSG
  32. DECLARE_MESSAGE_MAP()
  33. };
  34. /////////////////////////////////////////////////////////////////////////////
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CRegPropertyPage dialog
  37. class CRegPropertyPage : public CPropertyPage
  38. {
  39. DECLARE_DYNAMIC(CRegPropertyPage)
  40. // Construction
  41. public:
  42. CRegPropertyPage(UINT nIDTemplate, UINT nIDCaption = 0) :
  43. CPropertyPage( nIDTemplate, nIDCaption ) {}
  44. CRegPropertyPage(LPCTSTR lpszTemplateName, UINT nIDCaption = 0) :
  45. CPropertyPage( lpszTemplateName, nIDCaption ) {}
  46. ~CRegPropertyPage();
  47. virtual BOOL InitializePage() = 0;
  48. BOOL IsModified() { return m_bChanged; }
  49. // Dialog Data
  50. //{{AFX_DATA(CRegPropertyPage)
  51. // NOTE - ClassWizard will add data members here.
  52. // DO NOT EDIT what you see in these blocks of generated code !
  53. //}}AFX_DATA
  54. // Overrides
  55. // ClassWizard generate virtual function overrides
  56. //{{AFX_VIRTUAL(CRegPropertyPage)
  57. protected:
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. //}}AFX_VIRTUAL
  60. #if _MFC_VER >= 0x0400
  61. //
  62. // Keep private information on page dirty state, necessary for
  63. // SaveInfo() later.
  64. //
  65. public:
  66. void SetModified( BOOL bChanged = TRUE );
  67. protected:
  68. BOOL m_bChanged;
  69. #endif // _MFC_VER >= 0x0400
  70. // Implementation
  71. protected:
  72. // Generated message map functions
  73. //{{AFX_MSG(CRegPropertyPage)
  74. // NOTE: the ClassWizard will add member functions here
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. };
  78. #endif // _REG_SHEET_H_