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.

94 lines
2.3 KiB

  1. #ifndef CLUSTERPORTSDLG_H
  2. #define CLUSTERPORTSDLG_H
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "MNLBUIData.h"
  6. #include "CommonNLB.h"
  7. // forward declaration
  8. class PortsPage;
  9. class ClusterPortsDlg : public CDialog
  10. {
  11. public:
  12. enum
  13. {
  14. IDD = IDD_DIALOG_PORT_RULE_PROP_CLUSTER,
  15. };
  16. ClusterPortsDlg( PortsPage::PortData& portData,
  17. CWnd* parent,
  18. const int& index = -1
  19. );
  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 BOOL OnHelpInfo (HELPINFO* helpInfo );
  30. afx_msg void OnContextMenu( CWnd* pWnd, CPoint point );
  31. private:
  32. PortsPage::PortData& m_portData;
  33. PortsPage* m_parent;
  34. int m_index;
  35. void
  36. SetControlData();
  37. DECLARE_MESSAGE_MAP()
  38. };
  39. static DWORD g_aHelpIDs_IDD_PORT_RULE_PROP_CLUSTER [] = {
  40. IDC_GROUP_RANGE, IDC_GROUP_RANGE,
  41. IDC_TEXT_START, IDC_EDIT_START,
  42. IDC_EDIT_START, IDC_EDIT_START,
  43. IDC_SPIN_START, IDC_EDIT_START,
  44. IDC_TEXT_END, IDC_EDIT_END,
  45. IDC_EDIT_END, IDC_EDIT_END,
  46. IDC_SPIN_END, IDC_EDIT_END,
  47. IDC_GROUP_PROTOCOLS, IDC_GROUP_PROTOCOLS,
  48. IDC_RADIO_TCP, IDC_RADIO_TCP,
  49. IDC_RADIO_UDP, IDC_RADIO_UDP,
  50. IDC_RADIO_BOTH, IDC_RADIO_BOTH,
  51. IDC_GROUP_DISABLED, IDC_GROUP_DISABLED,
  52. IDC_GROUP_SINGLE, IDC_GROUP_SINGLE,
  53. IDC_GROUP_MULTIPLE, IDC_GROUP_MULTIPLE,
  54. IDC_RADIO_MULTIPLE, IDC_RADIO_MULTIPLE,
  55. IDC_RADIO_SINGLE, IDC_RADIO_SINGLE,
  56. IDC_RADIO_DISABLED, IDC_RADIO_DISABLED,
  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_TEXT_MULTI, IDC_TEXT_MULTI,
  62. IDC_RADIO_EQUAL, IDC_CHECK_EQUAL,
  63. IDC_RADIO_UNEQUAL, IDC_EDIT_MULTI,
  64. 0, 0
  65. };
  66. #endif