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.

61 lines
1.5 KiB

  1. #ifndef PORTSCTRL_H
  2. #define PORTSCTRL_H
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CPortsCtrl dialog
  7. class CPortsCtrl : public CDialog
  8. {
  9. // Construction
  10. public:
  11. CPortsCtrl(ENGINEHANDLE ehClusterOrInterfaceId,
  12. NLB_EXTENDED_CLUSTER_CONFIGURATION * pNlbCfg,
  13. bool fIsClusterLevel,
  14. CWnd * pParent = NULL);
  15. // Dialog Data
  16. enum { IDD = IDD_PORTS_CTRL };
  17. CListCtrl m_portList;
  18. CButton m_Enable;
  19. CButton m_Disable;
  20. CButton m_Drain;
  21. CButton m_Close;
  22. bool m_isClusterLevel;
  23. protected:
  24. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  25. // Implementation
  26. protected:
  27. virtual BOOL OnInitDialog();
  28. afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
  29. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  30. afx_msg void OnEnable();
  31. afx_msg void OnDisable();
  32. afx_msg void OnDrain();
  33. private:
  34. ENGINEHANDLE m_ehClusterOrInterfaceId;
  35. NLB_EXTENDED_CLUSTER_CONFIGURATION * m_pNlbCfg;
  36. bool m_sort_ascending;
  37. int m_sort_column;
  38. NLBERROR mfn_DoPortControlOperation(WLBS_OPERATION_CODES Opcode);
  39. DECLARE_MESSAGE_MAP()
  40. };
  41. #endif // PORTSCTRL_H