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.

95 lines
1.6 KiB

  1. #ifndef LEFTVIEW_H
  2. #define LEFTVIEW_H
  3. #include "stdafx.h"
  4. #include "Document.h"
  5. #include "MNLBUIData.h"
  6. #include "DataSinkI.h"
  7. class LeftView : public CTreeView, public DataSinkI
  8. {
  9. DECLARE_DYNCREATE( LeftView )
  10. public:
  11. virtual void OnInitialUpdate();
  12. LeftView();
  13. ~LeftView();
  14. // override of DataSinkI
  15. virtual void dataSink( _bstr_t data );
  16. bool
  17. doesClusterExistInView( const _bstr_t& clusterToCheck );
  18. protected:
  19. Document* GetDocument();
  20. private:
  21. TVINSERTSTRUCT rootItem;
  22. CString worldName;
  23. _bstr_t dataStore;
  24. _bstr_t title;
  25. void RefreshDirect();
  26. void RefreshIndirect();
  27. // message handlers.
  28. afx_msg void OnRButtonDown( UINT nFlags, CPoint point );
  29. // world level.
  30. afx_msg void OnWorldConnect();
  31. afx_msg void OnWorldConnectIndirect();
  32. afx_msg void OnWorldNewCluster();
  33. // cluster level.
  34. afx_msg void OnRefresh();
  35. afx_msg void OnClusterProperties();
  36. afx_msg void OnClusterManageVIPS();
  37. afx_msg void OnClusterRemove();
  38. afx_msg void OnClusterUnmanage();
  39. afx_msg void OnClusterAddHost();
  40. afx_msg void OnClusterControl(UINT nID );
  41. afx_msg void OnClusterPortControl(UINT nID );
  42. // host level
  43. afx_msg void OnHostProperties();
  44. afx_msg void OnHostRemove();
  45. afx_msg void OnHostControl(UINT nID );
  46. afx_msg void OnHostPortControl(UINT nID );
  47. // change in selection.
  48. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  49. afx_msg void OnTest();
  50. void dumpClusterData( const ClusterData* clusterData );
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. #endif