DataNodeList.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #if !defined(AFX_DATANODELIST_H__0B00D91E_9988_4634_A83E_D0A39B6F48ED__INCLUDED_)
  2. #define AFX_DATANODELIST_H__0B00D91E_9988_4634_A83E_D0A39B6F48ED__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DataNodeList.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDataNodeList window
  10. class EXPORT_CLASS CDataNodeList : public CListView
  11. {
  12. // Construction
  13. public:
  14. CDataNodeList();
  15. // Attributes
  16. public:
  17. // 显示单个节点属性
  18. void ShowProperties(CDataNodeBase *pNode);
  19. // 显示多个节点属性
  20. void ShowProperties(CPtrList &ptrListNodes, BOOL bShowCommonOnly);
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CDataNodeList)
  26. //}}AFX_VIRTUAL
  27. // Implementation
  28. public:
  29. virtual ~CDataNodeList();
  30. CImageListDyn m_imageList;
  31. CPtrList m_ptrListNodes;
  32. // Generated message map functions
  33. protected:
  34. //{{AFX_MSG(CDataNodeList)
  35. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  36. //}}AFX_MSG
  37. DECLARE_MESSAGE_MAP()
  38. };
  39. class EXPORT_CLASS CDataNodeListCtrl : public CListCtrl
  40. {
  41. friend CDataNodeList;
  42. // Construction
  43. public:
  44. CDataNodeListCtrl();
  45. CListCtrl& GetListCtrl();
  46. // Attributes
  47. public:
  48. // 显示单个节点属性
  49. void ShowProperties(CDataNodeBase *pNode);
  50. // 显示多个节点属性
  51. void ShowProperties(CPtrList &ptrListNodes, BOOL bShowCommonOnly);
  52. // Operations
  53. public:
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(CDataNodeList)
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. public:
  60. virtual ~CDataNodeListCtrl();
  61. CImageListDyn m_imageList;
  62. CPtrList m_ptrListNodes;
  63. // Generated message map functions
  64. protected:
  65. static void CDataNodeListCtrl::InitList(CListCtrl &listCtrl, CImageListDyn &imageList);
  66. static void CDataNodeListCtrl::ShowPropertiesSt(CListCtrl &listCtrl, CImageListDyn &imageList, CDataNodeBase *pNode, CPtrList &ptrListNodesM);
  67. static void CDataNodeListCtrl::ShowPropertiesSt(CListCtrl &listCtrl, CImageListDyn &imageList, CPtrList &ptrListNodes, CPtrList &ptrListNodesM, BOOL bShowCommonOnly);
  68. //{{AFX_MSG(CDataNodeList)
  69. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. };
  73. /////////////////////////////////////////////////////////////////////////////
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_DATANODELIST_H__0B00D91E_9988_4634_A83E_D0A39B6F48ED__INCLUDED_)