Source code of Windows XP (NT5)
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.

115 lines
2.4 KiB

  1. #ifndef HOSTPAGE_H
  2. #define HOSTPAGE_H
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "MNLBUIData.h"
  6. #include "CommonNLB.h"
  7. #include "IpSubnetMaskControl.h"
  8. //
  9. // History:
  10. // --------
  11. //
  12. // Revised by : mhakim
  13. // Date : 02-14-01
  14. // Reason : Passing complete nic information instead of only the nic list.
  15. class HostPage : public CPropertyPage
  16. {
  17. public:
  18. enum
  19. {
  20. IDD = IDD_HOST_PAGE,
  21. };
  22. HostPage( const _bstr_t& machine,
  23. ClusterData* p_clusterData,
  24. const vector<CommonNLB::NicNLBBound> listOfNics,
  25. const bool& isNewHost,
  26. UINT ID = HostPage::IDD );
  27. // member controls
  28. CComboBox nicName;
  29. CComboBox priority;
  30. //
  31. // IpAddress and subnet mask
  32. //
  33. CIPAddressCtrl ipAddress;
  34. CIPAddressCtrl subnetMask;
  35. CButton initialState;
  36. CEdit detailedNicInfo;
  37. // overrides of CPropertyPage
  38. virtual void DoDataExchange( CDataExchange* pDX );
  39. virtual BOOL OnInitDialog();
  40. virtual void OnOK();
  41. virtual BOOL OnKillActive();
  42. afx_msg void OnSelectedNicChanged();
  43. afx_msg void OnGainFocusDedicatedIP();
  44. afx_msg void OnGainFocusDedicatedMask();
  45. afx_msg BOOL OnHelpInfo (HELPINFO* helpInfo );
  46. afx_msg void OnContextMenu( CWnd* pWnd, CPoint point );
  47. protected:
  48. _bstr_t m_machine;
  49. int m_previousSelection;
  50. bool m_isNewHost;
  51. // Edited (mhakim 02-14-01)
  52. // vector<_bstr_t> m_nicList;
  53. vector< CommonNLB::NicNLBBound > m_nicList;
  54. ClusterData* m_clusterData;
  55. void
  56. SetControlData();
  57. void
  58. ReadControlData();
  59. bool
  60. isDipConfiguredOK();
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. // help ids for this dialog.
  64. //
  65. static DWORD g_aHelpIDs_IDD_HOST_PAGE [] = {
  66. IDC_GROUP_NIC, IDC_GROUP_NIC,
  67. IDC_NIC_FRIENDLY, IDC_NIC_FRIENDLY,
  68. IDC_NIC, IDC_NIC,
  69. IDC_NIC_DETAIL, IDC_NIC_DETAIL,
  70. IDC_TEXT_PRI, IDC_EDIT_PRI,
  71. IDC_EDIT_PRI, IDC_EDIT_PRI,
  72. IDC_GROUP_DED_IP, IDC_GROUP_DED_IP,
  73. IDC_TEXT_DED_IP, IDC_EDIT_DED_IP,
  74. IDC_EDIT_DED_IP, IDC_EDIT_DED_IP,
  75. IDC_TEXT_DED_MASK, IDC_EDIT_DED_MASK,
  76. IDC_EDIT_DED_MASK, IDC_EDIT_DED_MASK,
  77. IDC_CHECK_ACTIVE, IDC_CHECK_ACTIVE,
  78. 0, 0
  79. };
  80. #endif