TREEVIEWCLASS.H
上传用户:gzfeiyu199
上传日期:2021-09-15
资源大小:68k
文件大小:2k
源码类别:

编辑框

开发平台:

Visual C++

  1. #if !defined(AFX_TREEVIEWCLASS_H__C73CC5D6_5B91_11D2_AB9F_441100C10000__INCLUDED_)
  2. #define AFX_TREEVIEWCLASS_H__C73CC5D6_5B91_11D2_AB9F_441100C10000__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TreeViewClass.h : header file
  7. //
  8. #include <afxcview.h>
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CTreeViewClass view
  11. class CTreeViewClass : public CTreeView
  12. {
  13. protected:
  14. CTreeViewClass();           // protected constructor used by dynamic creation
  15. DECLARE_DYNCREATE(CTreeViewClass)
  16. // Attributes
  17. public:
  18. CTreeCtrl* m_TreeCtrl;
  19. CImageList m_ImageList;
  20. // Operations
  21. public:
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CTreeViewClass)
  25. protected:
  26. virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. virtual ~CTreeViewClass();
  32. #ifdef _DEBUG
  33. virtual void AssertValid() const;
  34. virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36. // Generated message map functions
  37. protected:
  38. //{{AFX_MSG(CTreeViewClass)
  39. afx_msg void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
  40. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  41. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. };
  45. /////////////////////////////////////////////////////////////////////////////
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_TREEVIEWCLASS_H__C73CC5D6_5B91_11D2_AB9F_441100C10000__INCLUDED_)