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.

87 lines
2.3 KiB

  1. #ifndef HOSTPORTSDLG_H
  2. #define HOSTPORTSDLG_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 HostPortsDlg : public CDialog
  10. {
  11. public:
  12. enum
  13. {
  14. IDD = IDD_DIALOG_PORT_RULE_PROP_HOSTS,
  15. };
  16. HostPortsDlg( PortsPage::PortData& portData,
  17. CWnd* parent
  18. );
  19. // overrides of CDialog
  20. virtual void DoDataExchange( CDataExchange* pDX );
  21. virtual void OnOK();
  22. virtual BOOL OnInitDialog();
  23. afx_msg BOOL OnHelpInfo (HELPINFO* helpInfo );
  24. afx_msg void OnContextMenu( CWnd* pWnd, CPoint point );
  25. // message handlers
  26. //
  27. CComboBox m_priority;
  28. private:
  29. PortsPage::PortData& m_portData;
  30. PortsPage* m_parent;
  31. void
  32. SetControlData();
  33. DECLARE_MESSAGE_MAP()
  34. };
  35. static DWORD g_aHelpIDs_IDD_PORT_RULE_PROP_HOSTS [] = {
  36. IDC_GROUP_RANGE, IDC_GROUP_RANGE,
  37. IDC_TEXT_START, IDC_EDIT_START,
  38. IDC_EDIT_START, IDC_EDIT_START,
  39. IDC_SPIN_START, IDC_EDIT_START,
  40. IDC_TEXT_END, IDC_EDIT_END,
  41. IDC_EDIT_END, IDC_EDIT_END,
  42. IDC_SPIN_END, IDC_EDIT_END,
  43. IDC_GROUP_PROTOCOLS, IDC_GROUP_PROTOCOLS,
  44. IDC_RADIO_TCP, IDC_RADIO_TCP,
  45. IDC_RADIO_UDP, IDC_RADIO_UDP,
  46. IDC_RADIO_BOTH, IDC_RADIO_BOTH,
  47. IDC_GROUP_DISABLED, IDC_GROUP_DISABLED,
  48. IDC_GROUP_SINGLE, IDC_GROUP_SINGLE,
  49. IDC_GROUP_MULTIPLE, IDC_GROUP_MULTIPLE,
  50. IDC_RADIO_MULTIPLE, IDC_RADIO_MULTIPLE,
  51. IDC_RADIO_SINGLE, IDC_RADIO_SINGLE,
  52. IDC_RADIO_DISABLED, IDC_RADIO_DISABLED,
  53. IDC_TEXT_AFF, IDC_TEXT_AFF,
  54. IDC_RADIO_AFF_NONE, IDC_RADIO_AFF_NONE,
  55. IDC_RADIO_AFF_SINGLE, IDC_RADIO_AFF_SINGLE,
  56. IDC_RADIO_AFF_CLASSC, IDC_RADIO_AFF_CLASSC,
  57. IDC_TEXT_MULTI, IDC_TEXT_MULTI,
  58. IDC_EDIT_MULTI, IDC_EDIT_MULTI,
  59. IDC_SPIN_MULTI, IDC_EDIT_MULTI,
  60. IDC_CHECK_EQUAL, IDC_CHECK_EQUAL,
  61. IDC_TEXT_SINGLE, IDC_EDIT_SINGLE,
  62. IDC_EDIT_SINGLE, IDC_EDIT_SINGLE,
  63. 0, 0
  64. };
  65. #endif