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.

159 lines
3.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1997 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // NetProp.h
  7. //
  8. // Abstract:
  9. // Definition of the network property sheet and pages.
  10. //
  11. // Author:
  12. // David Potter (davidp) June 9, 1997
  13. //
  14. // Implementation File:
  15. // NetProp.cpp
  16. //
  17. // Revision History:
  18. //
  19. // Notes:
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #ifndef _NETPROP_H_
  23. #define _NETPROP_H_
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Include Files
  26. /////////////////////////////////////////////////////////////////////////////
  27. #ifndef _BASEPAGE_H_
  28. #include "BasePPag.h" // for CBasePropertyPage
  29. #endif
  30. #ifndef _BASESHT_H_
  31. #include "BasePSht.h" // for CBasePropertySheet
  32. #endif
  33. #ifndef _NETWORK_H_
  34. #include "Network.h" // for CNetwork
  35. #endif
  36. /////////////////////////////////////////////////////////////////////////////
  37. // Forward Class Declarations
  38. /////////////////////////////////////////////////////////////////////////////
  39. class CNetworkGeneralPage;
  40. class CNetworkPropSheet;
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CNetworkGeneralPage dialog
  43. /////////////////////////////////////////////////////////////////////////////
  44. class CNetworkGeneralPage : public CBasePropertyPage
  45. {
  46. DECLARE_DYNCREATE(CNetworkGeneralPage)
  47. // Construction
  48. public:
  49. CNetworkGeneralPage(void);
  50. virtual BOOL BInit(IN OUT CBaseSheet * psht);
  51. // Dialog Data
  52. //{{AFX_DATA(CNetworkGeneralPage)
  53. enum { IDD = IDD_PP_NET_GENERAL };
  54. CEdit m_editAddressMask;
  55. CEdit m_editDesc;
  56. CEdit m_editName;
  57. CButton m_rbRoleClientOnly;
  58. CButton m_rbRoleInternalOnly;
  59. CButton m_rbRoleAllComm;
  60. CButton m_ckbEnable;
  61. CString m_strName;
  62. CString m_strDesc;
  63. CString m_strAddressMask;
  64. CString m_strState;
  65. int m_nRole;
  66. BOOL m_bEnabled;
  67. //}}AFX_DATA
  68. CLUSTER_NETWORK_ROLE m_cnr;
  69. // Overrides
  70. // ClassWizard generate virtual function overrides
  71. //{{AFX_VIRTUAL(CNetworkGeneralPage)
  72. public:
  73. virtual BOOL OnApply();
  74. protected:
  75. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  76. //}}AFX_VIRTUAL
  77. // Implementation
  78. protected:
  79. CNetworkPropSheet * PshtNetwork(void) const { return (CNetworkPropSheet *) Psht(); }
  80. CNetwork * PciNet(void) const { return (CNetwork *) Pci(); }
  81. // Generated message map functions
  82. //{{AFX_MSG(CNetworkGeneralPage)
  83. virtual BOOL OnInitDialog();
  84. afx_msg void OnEnableNetwork();
  85. //}}AFX_MSG
  86. DECLARE_MESSAGE_MAP()
  87. }; //*** class CNetworkGeneralPage
  88. /////////////////////////////////////////////////////////////////////////////
  89. // CNetworkPropSheet
  90. /////////////////////////////////////////////////////////////////////////////
  91. class CNetworkPropSheet : public CBasePropertySheet
  92. {
  93. DECLARE_DYNAMIC(CNetworkPropSheet)
  94. // Construction
  95. public:
  96. CNetworkPropSheet(
  97. IN OUT CWnd * pParentWnd = NULL,
  98. IN UINT iSelectPage = 0
  99. );
  100. virtual BOOL BInit(
  101. IN OUT CClusterItem * pciCluster,
  102. IN IIMG iimgIcon
  103. );
  104. // Attributes
  105. protected:
  106. CBasePropertyPage * m_rgpages[1];
  107. // Pages
  108. CNetworkGeneralPage m_pageGeneral;
  109. CNetworkGeneralPage & PageGeneral(void) { return m_pageGeneral; }
  110. public:
  111. CNetwork * PciNet(void) const { return (CNetwork *) Pci(); }
  112. // Operations
  113. // Overrides
  114. protected:
  115. virtual CBasePropertyPage ** Ppages(void);
  116. virtual int Cpages(void);
  117. // ClassWizard generated virtual function overrides
  118. //{{AFX_VIRTUAL(CNetworkPropSheet)
  119. //}}AFX_VIRTUAL
  120. // Implementation
  121. protected:
  122. // Generated message map functions
  123. //{{AFX_MSG(CNetworkPropSheet)
  124. //}}AFX_MSG
  125. DECLARE_MESSAGE_MAP()
  126. }; //*** class CNetworkPropSheet
  127. /////////////////////////////////////////////////////////////////////////////
  128. #endif // _NETPROP_H_