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.

105 lines
2.9 KiB

  1. #ifndef CLUSTERPORTSDLG_H
  2. #define CLUSTERPORTSDLG_H
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "MNLBUIData.h"
  6. // forward declaration
  7. class PortsPage;
  8. class ClusterPortsDlg : public CDialog
  9. {
  10. public:
  11. enum
  12. {
  13. IDD = IDD_DIALOG_PORT_RULE_PROP_CLUSTER,
  14. };
  15. ClusterPortsDlg( PortsPage::PortData& portData,
  16. CWnd* parent,
  17. const int& index = -1
  18. );
  19. CIPAddressCtrl ipAddress;
  20. void PrintRangeError (unsigned int ids, int low, int high);
  21. // overrides of CDialog
  22. virtual void DoDataExchange( CDataExchange* pDX );
  23. virtual void OnOK();
  24. virtual BOOL OnInitDialog();
  25. // message handlers
  26. afx_msg void OnRadioMultiple();
  27. afx_msg void OnRadioSingle();
  28. afx_msg void OnRadioDisabled();
  29. afx_msg void OnCheckAllVIP();
  30. afx_msg BOOL OnHelpInfo (HELPINFO* helpInfo );
  31. afx_msg void OnContextMenu( CWnd* pWnd, CPoint point );
  32. private:
  33. PortsPage::PortData& m_portData;
  34. PortsPage* m_parent;
  35. int m_index;
  36. void
  37. SetControlData();
  38. DECLARE_MESSAGE_MAP()
  39. };
  40. static DWORD g_aHelpIDs_IDD_PORT_RULE_PROP_CLUSTER [] = {
  41. IDC_GROUP_PORT_RULE_VIP, IDC_GROUP_PORT_RULE_VIP,
  42. IDC_EDIT_PORT_RULE_VIP, IDC_EDIT_PORT_RULE_VIP,
  43. IDC_CHECK_PORT_RULE_ALL_VIP, IDC_CHECK_PORT_RULE_ALL_VIP,
  44. IDC_GROUP_RANGE, IDC_GROUP_RANGE,
  45. IDC_TEXT_START, IDC_EDIT_START,
  46. IDC_EDIT_START, IDC_EDIT_START,
  47. IDC_SPIN_START, IDC_EDIT_START,
  48. IDC_TEXT_END, IDC_EDIT_END,
  49. IDC_EDIT_END, IDC_EDIT_END,
  50. IDC_SPIN_END, IDC_EDIT_END,
  51. IDC_GROUP_PROTOCOLS, IDC_GROUP_PROTOCOLS,
  52. IDC_RADIO_TCP, IDC_RADIO_TCP,
  53. IDC_RADIO_UDP, IDC_RADIO_UDP,
  54. IDC_RADIO_BOTH, IDC_RADIO_BOTH,
  55. IDC_GROUP_MULTIPLE, IDC_GROUP_MULTIPLE,
  56. IDC_RADIO_MULTIPLE, IDC_RADIO_MULTIPLE,
  57. IDC_TEXT_AFF, IDC_TEXT_AFF,
  58. IDC_RADIO_AFF_NONE, IDC_RADIO_AFF_NONE,
  59. IDC_RADIO_AFF_SINGLE, IDC_RADIO_AFF_SINGLE,
  60. IDC_RADIO_AFF_CLASSC, IDC_RADIO_AFF_CLASSC,
  61. IDC_CHECK_EQUAL, IDC_CHECK_EQUAL,
  62. IDC_TEXT_MULTI, IDC_TEXT_MULTI,
  63. IDC_EDIT_MULTI, IDC_EDIT_MULTI,
  64. IDC_SPIN_MULTI, IDC_EDIT_MULTI,
  65. IDC_CHECK_EQUAL, IDC_CHECK_EQUAL,
  66. IDC_GROUP_SINGLE, IDC_GROUP_MULTIPLE,
  67. IDC_RADIO_SINGLE, IDC_RADIO_SINGLE,
  68. IDC_TEXT_SINGLE, IDC_EDIT_SINGLE,
  69. IDC_EDIT_SINGLE, IDC_EDIT_SINGLE,
  70. IDC_SPIN_SINGLE, IDC_EDIT_SINGLE,
  71. IDC_GROUP_DISABLED, IDC_GROUP_MULTIPLE,
  72. IDC_RADIO_DISABLED, IDC_RADIO_DISABLED,
  73. 0, 0
  74. };
  75. #endif