1 // LeftView.cpp : implementation of the CLeftView class
7 #include "SeaShellDoc.h"
13 static char THIS_FILE[] = __FILE__;
16 /////////////////////////////////////////////////////////////////////////////
19 IMPLEMENT_DYNCREATE(CLeftView, CIEShellTreeView)
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!
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)
32 /////////////////////////////////////////////////////////////////////////////
33 // CLeftView construction/destruction
35 CLeftView::CLeftView()
37 // TODO: add construction code here
41 CLeftView::~CLeftView()
45 BOOL CLeftView::PreCreateWindow(CREATESTRUCT& cs)
47 // TODO: Modify the Window class or styles here by modifying
48 // the CREATESTRUCT cs
50 return CIEShellTreeView::PreCreateWindow(cs);
53 /////////////////////////////////////////////////////////////////////////////
56 void CLeftView::OnDraw(CDC* pDC)
58 CSeaShellDoc* pDoc = GetDocument();
61 // TODO: add draw code for native data here
65 /////////////////////////////////////////////////////////////////////////////
68 BOOL CLeftView::OnPreparePrinting(CPrintInfo* pInfo)
70 // default preparation
71 return DoPreparePrinting(pInfo);
74 void CLeftView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
76 // TODO: add extra initialization before printing
79 void CLeftView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
81 // TODO: add cleanup after printing
84 void CLeftView::OnInitialUpdate()
86 CIEShellTreeView::OnInitialUpdate();
88 // TODO: You may populate your TreeView with items by directly accessing
89 // its tree control through a call to GetTreeCtrl().
92 /////////////////////////////////////////////////////////////////////////////
93 // CLeftView diagnostics
96 void CLeftView::AssertValid() const
98 CIEShellTreeView::AssertValid();
101 void CLeftView::Dump(CDumpContext& dc) const
103 CIEShellTreeView::Dump(dc);
106 CSeaShellDoc* CLeftView::GetDocument() // non-debug version is inline
108 ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSeaShellDoc)));
109 return (CSeaShellDoc*)m_pDocument;
113 /////////////////////////////////////////////////////////////////////////////
114 // CLeftView message handlers