This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / subsys / system / explorer / Seashell / LeftView.cpp
1 // LeftView.cpp : implementation of the CLeftView class
2 //
3
4 #include "stdafx.h"
5 #include "SeaShell.h"
6
7 #include "SeaShellDoc.h"
8 #include "LeftView.h"
9
10 #ifdef _DEBUG
11 #define new DEBUG_NEW
12 #undef THIS_FILE
13 static char THIS_FILE[] = __FILE__;
14 #endif
15
16 /////////////////////////////////////////////////////////////////////////////
17 // CLeftView
18
19 IMPLEMENT_DYNCREATE(CLeftView, CIEShellTreeView)
20
21 BEGIN_MESSAGE_MAP(CLeftView, CIEShellTreeView)
22         //{{AFX_MSG_MAP(CLeftView)
23                 // NOTE - the ClassWizard will add and remove mapping macros here.
24                 //    DO NOT EDIT what you see in these blocks of generated code!
25         //}}AFX_MSG_MAP
26         // Standard printing commands
27         ON_COMMAND(ID_FILE_PRINT, CIEShellTreeView::OnFilePrint)
28         ON_COMMAND(ID_FILE_PRINT_DIRECT, CIEShellTreeView::OnFilePrint)
29         ON_COMMAND(ID_FILE_PRINT_PREVIEW, CIEShellTreeView::OnFilePrintPreview)
30 END_MESSAGE_MAP()
31
32 /////////////////////////////////////////////////////////////////////////////
33 // CLeftView construction/destruction
34
35 CLeftView::CLeftView()
36 {
37         // TODO: add construction code here
38
39 }
40
41 CLeftView::~CLeftView()
42 {
43 }
44
45 BOOL CLeftView::PreCreateWindow(CREATESTRUCT& cs)
46 {
47         // TODO: Modify the Window class or styles here by modifying
48         //  the CREATESTRUCT cs
49
50         return CIEShellTreeView::PreCreateWindow(cs);
51 }
52
53 /////////////////////////////////////////////////////////////////////////////
54 // CLeftView drawing
55
56 void CLeftView::OnDraw(CDC* pDC)
57 {
58         CSeaShellDoc* pDoc = GetDocument();
59         ASSERT_VALID(pDoc);
60
61         // TODO: add draw code for native data here
62 }
63
64
65 /////////////////////////////////////////////////////////////////////////////
66 // CLeftView printing
67
68 BOOL CLeftView::OnPreparePrinting(CPrintInfo* pInfo)
69 {
70         // default preparation
71         return DoPreparePrinting(pInfo);
72 }
73
74 void CLeftView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
75 {
76         // TODO: add extra initialization before printing
77 }
78
79 void CLeftView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
80 {
81         // TODO: add cleanup after printing
82 }
83
84 void CLeftView::OnInitialUpdate()
85 {
86         CIEShellTreeView::OnInitialUpdate();
87
88         // TODO: You may populate your TreeView with items by directly accessing
89         //  its tree control through a call to GetTreeCtrl().
90 }
91
92 /////////////////////////////////////////////////////////////////////////////
93 // CLeftView diagnostics
94
95 #ifdef _DEBUG
96 void CLeftView::AssertValid() const
97 {
98         CIEShellTreeView::AssertValid();
99 }
100
101 void CLeftView::Dump(CDumpContext& dc) const
102 {
103         CIEShellTreeView::Dump(dc);
104 }
105
106 CSeaShellDoc* CLeftView::GetDocument() // non-debug version is inline
107 {
108         ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSeaShellDoc)));
109         return (CSeaShellDoc*)m_pDocument;
110 }
111 #endif //_DEBUG
112
113 /////////////////////////////////////////////////////////////////////////////
114 // CLeftView message handlers