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.

174 lines
4.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ResTProp.cpp
  7. //
  8. // Abstract:
  9. // Definition of the resource type property sheet and pages.
  10. //
  11. // Author:
  12. // David Potter (davidp) May 14, 1996
  13. //
  14. // Revision History:
  15. //
  16. // Notes:
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. #ifndef _RESTPROP_H_
  20. #define _RESTPROP_H_
  21. /////////////////////////////////////////////////////////////////////////////
  22. // Include Files
  23. /////////////////////////////////////////////////////////////////////////////
  24. #ifndef _BASEPAGE_H_
  25. #include "BasePPag.h" // for CBasePropertyPage
  26. #endif
  27. #ifndef _BASESHT_H_
  28. #include "BasePSht.h" // for CBasePropertySheet
  29. #endif
  30. #ifndef _NODE_H_
  31. #include "Node.h" // for CNodeList
  32. #endif
  33. /////////////////////////////////////////////////////////////////////////////
  34. // Forward Class Declarations
  35. /////////////////////////////////////////////////////////////////////////////
  36. class CResTypeGeneralPage;
  37. class CResTypePropSheet;
  38. /////////////////////////////////////////////////////////////////////////////
  39. // External Class Declarations
  40. /////////////////////////////////////////////////////////////////////////////
  41. class CResourceType;
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CClusterGeneralPage dialog
  44. /////////////////////////////////////////////////////////////////////////////
  45. class CResTypeGeneralPage : public CBasePropertyPage
  46. {
  47. DECLARE_DYNCREATE(CResTypeGeneralPage)
  48. // Construction
  49. public:
  50. CResTypeGeneralPage(void);
  51. virtual BOOL BInit(IN OUT CBaseSheet * psht);
  52. // Dialog Data
  53. //{{AFX_DATA(CResTypeGeneralPage)
  54. enum { IDD = IDD_PP_RESTYPE_GENERAL };
  55. CEdit m_editQuorumCapable;
  56. CEdit m_editResDLL;
  57. CEdit m_editName;
  58. CListBox m_lbPossibleOwners;
  59. CEdit m_editIsAlive;
  60. CEdit m_editLooksAlive;
  61. CEdit m_editDisplayName;
  62. CEdit m_editDesc;
  63. CString m_strDisplayName;
  64. CString m_strDesc;
  65. CString m_strName;
  66. CString m_strResDLL;
  67. CString m_strQuorumCapable;
  68. //}}AFX_DATA
  69. DWORD m_nLooksAlive;
  70. DWORD m_nIsAlive;
  71. CNodeList m_lpciPossibleOwners;
  72. const CNodeList & LpciPossibleOwners(void) const { return m_lpciPossibleOwners; }
  73. // Overrides
  74. // ClassWizard generate virtual function overrides
  75. //{{AFX_VIRTUAL(CResTypeGeneralPage)
  76. public:
  77. virtual BOOL OnApply();
  78. protected:
  79. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  80. //}}AFX_VIRTUAL
  81. // Implementation
  82. protected:
  83. CResTypePropSheet * PshtResType(void) { return (CResTypePropSheet *) Psht(); }
  84. CResourceType * PciResType(void) { return (CResourceType *) Pci(); }
  85. void FillPossibleOwners(void);
  86. // Generated message map functions
  87. //{{AFX_MSG(CResTypeGeneralPage)
  88. virtual BOOL OnInitDialog();
  89. afx_msg void OnKillFocusDisplayName();
  90. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  91. afx_msg void OnDblClkPossibleOwners();
  92. //}}AFX_MSG
  93. afx_msg void OnProperties();
  94. DECLARE_MESSAGE_MAP()
  95. }; //*** class CResTypeGeneralPage
  96. /////////////////////////////////////////////////////////////////////////////
  97. // CResTypePropSheet
  98. /////////////////////////////////////////////////////////////////////////////
  99. class CResTypePropSheet : public CBasePropertySheet
  100. {
  101. DECLARE_DYNAMIC(CResTypePropSheet)
  102. // Construction
  103. public:
  104. CResTypePropSheet(
  105. IN OUT CWnd * pParentWnd = NULL,
  106. IN UINT iSelectPage = 0
  107. );
  108. virtual BOOL BInit(
  109. IN OUT CClusterItem * pciCluster,
  110. IN IIMG iimgIcon
  111. );
  112. // Attributes
  113. protected:
  114. CBasePropertyPage * m_rgpages[1];
  115. // Pages
  116. CResTypeGeneralPage m_pageGeneral;
  117. CResTypeGeneralPage & PageGeneral(void) { return m_pageGeneral; }
  118. public:
  119. CResourceType * PciResType(void) const { return (CResourceType *) Pci(); }
  120. virtual CBasePropertyPage ** Ppages(void);
  121. virtual int Cpages(void);
  122. // Operations
  123. public:
  124. // Overrides
  125. // ClassWizard generated virtual function overrides
  126. //{{AFX_VIRTUAL(CResTypePropSheet)
  127. //}}AFX_VIRTUAL
  128. // Implementation
  129. public:
  130. // Generated message map functions
  131. protected:
  132. //{{AFX_MSG(CResTypePropSheet)
  133. // NOTE - the ClassWizard will add and remove member functions here.
  134. //}}AFX_MSG
  135. DECLARE_MESSAGE_MAP()
  136. }; //*** class CResTypePropSheet
  137. /////////////////////////////////////////////////////////////////////////////
  138. #endif // _RESTPROP_H_