TreeViewEx.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:3k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // TreeViewEx.h : interface of the CTreeViewEx class
  2. //
  3. // This file is a part of the XTREME TOOLKIT PRO MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #if !defined(AFX_TREEVIEWEX_H__8BD95F4F_4B40_4C99_9763_C42EA2DE8889__INCLUDED_)
  21. #define AFX_TREEVIEWEX_H__8BD95F4F_4B40_4C99_9763_C42EA2DE8889__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. class CListViewExDoc;
  26. class CTreeViewEx : public CView
  27. {
  28. protected: // create from serialization only
  29. CTreeViewEx();
  30. DECLARE_DYNCREATE(CTreeViewEx)
  31. // Attributes
  32. public:
  33. CListViewExDoc* GetDocument();
  34. // Operations
  35. public:
  36. CXTCaption  m_wndCaption;
  37. CImageList  m_ilTreeIcons;
  38. CXTTreeCtrl m_wndTreeCtrl;
  39. public:
  40. BOOL InitializeImageLists();
  41. BOOL InitilalizeTreeControl();
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CTreeViewEx)
  45. public:
  46. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  47. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  48. protected:
  49. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  50. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  51. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  52. virtual void OnInitialUpdate(); // called first time after construct
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. public:
  56. virtual ~CTreeViewEx();
  57. #ifdef _DEBUG
  58. virtual void AssertValid() const;
  59. virtual void Dump(CDumpContext& dc) const;
  60. #endif
  61. protected:
  62. // Generated message map functions
  63. protected:
  64. //{{AFX_MSG(CTreeViewEx)
  65. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  66. afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
  67. //}}AFX_MSG
  68. afx_msg void OnCaptButton();
  69. DECLARE_MESSAGE_MAP()
  70. friend class CMainFrame;
  71. };
  72. #ifndef _DEBUG  // debug version in TreeViewEx.cpp
  73. inline CListViewExDoc* CTreeViewEx::GetDocument()
  74. { return (CListViewExDoc*)m_pDocument; }
  75. #endif
  76. /////////////////////////////////////////////////////////////////////////////
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_TREEVIEWEX_H__8BD95F4F_4B40_4C99_9763_C42EA2DE8889__INCLUDED_)