update for HEAD-2003091401
[reactos.git] / subsys / system / explorer / Seashell / SeaShellExt / Include / UITreeView.h
1 //*******************************************************************************
2 // COPYRIGHT NOTES
3 // ---------------
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.
10 // 
11 // For the latest updates to this code, check this site:
12 // http://www.masmex.com 
13 // after Sept 2000
14 // 
15 // Copyright(C) 2000 Philip Oldaker <email: philip@masmex.com>
16 //*******************************************************************************
17
18 #if !defined(AFX_UITREEVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)
19 #define AFX_UITREEVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_
20
21 #if _MSC_VER >= 1000
22 #pragma once
23 #endif // _MSC_VER >= 1000
24
25 /////////////////////////////////////////////////////////////////////////////
26 // CUITreeView view
27 #include "UITreeCtrl.h"
28
29 class CTRL_EXT_CLASS CUITreeView : public CView
30 {
31 protected:
32         CUITreeView(UINT nID);           // protected constructor used by dynamic creation
33         DECLARE_DYNAMIC(CUITreeView)
34
35 // Attributes
36 public:
37         virtual CUITreeCtrl &GetTreeCtrl();
38         virtual void CreateTreeCtrl();
39 protected:
40         virtual void SelectionChanged(const CRefresh &Refresh);
41 // Operations
42 public:
43
44 // Overrides
45         // ClassWizard generated virtual function overrides
46         //{{AFX_VIRTUAL(CUITreeView)
47         protected:
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);
51         //}}AFX_VIRTUAL
52
53 // Implementation
54 protected:
55         virtual ~CUITreeView();
56 #ifdef _DEBUG
57         virtual void AssertValid() const;
58         virtual void Dump(CDumpContext& dc) const;
59 #endif
60
61         // Generated message map functions
62 protected:
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);
67         //}}AFX_MSG
68         afx_msg LRESULT OnAppUpdateAllViews( WPARAM wParam, LPARAM lParam );
69         DECLARE_MESSAGE_MAP()
70 protected:
71         CUITreeCtrl *m_pTreeCtrl;
72 private:
73         UINT m_Style;
74         UINT m_nID;
75 };
76
77 /////////////////////////////////////////////////////////////////////////////
78
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
81
82 #endif // !defined(AFX_UITREEVIEW__6016F537_2DF1_11D2_A412_E0317E000000__INCLUDED_)