1 //*******************************************************************************
4 // You may use this source code, compile or redistribute it as part of your application
5 // for free. You cannot redistribute it as a part of a software development
6 // library without the agreement of the author. If the sources are
7 // distributed along with the application, you should leave the original
8 // copyright notes in the source code without any changes.
9 // This code can be used WITHOUT ANY WARRANTIES at your own risk.
11 // For the latest updates to this code, check this site:
12 // http://www.masmex.com
15 // Copyright(C) 2000 Philip Oldaker <email: philip@masmex.com>
16 //*******************************************************************************
18 #if !defined(AFX_UITREEVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)
19 #define AFX_UITREEVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_
23 #endif // _MSC_VER >= 1000
25 /////////////////////////////////////////////////////////////////////////////
27 #include "UITreeCtrl.h"
29 class CTRL_EXT_CLASS CUITreeView : public CView
32 CUITreeView(UINT nID); // protected constructor used by dynamic creation
33 DECLARE_DYNAMIC(CUITreeView)
37 virtual CUITreeCtrl &GetTreeCtrl();
38 virtual void CreateTreeCtrl();
40 virtual void SelectionChanged(const CRefresh &Refresh);
45 // ClassWizard generated virtual function overrides
46 //{{AFX_VIRTUAL(CUITreeView)
48 virtual void OnDraw(CDC* pDC); // overridden to draw this view
49 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
50 virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
55 virtual ~CUITreeView();
57 virtual void AssertValid() const;
58 virtual void Dump(CDumpContext& dc) const;
61 // Generated message map functions
63 //{{AFX_MSG(CUITreeView)
64 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
65 afx_msg void OnSetFocus(CWnd* pOldWnd);
66 afx_msg void OnSize(UINT nType, int cx, int cy);
68 afx_msg LRESULT OnAppUpdateAllViews( WPARAM wParam, LPARAM lParam );
71 CUITreeCtrl *m_pTreeCtrl;
77 /////////////////////////////////////////////////////////////////////////////
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
82 #endif // !defined(AFX_UITREEVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)