www.pudn.com > TreeViewInSDI.rar > TreeViewInSDIView.h


// TreeViewInSDIView.h : interface of the CTreeViewInSDIView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_TREEVIEWINSDIVIEW_H__D3B9A01C_C5BF_4C61_B5E9_DA053695E84C__INCLUDED_) 
#define AFX_TREEVIEWINSDIVIEW_H__D3B9A01C_C5BF_4C61_B5E9_DA053695E84C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CTreeViewInSDIView : public CTreeView 
{ 
protected: // create from serialization only 
	CTreeViewInSDIView(); 
	DECLARE_DYNCREATE(CTreeViewInSDIView) 
 
// Attributes 
public: 
	CTreeViewInSDIDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CTreeViewInSDIView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CTreeViewInSDIView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
	CImageList m_TreeImages; 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CTreeViewInSDIView) 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in TreeViewInSDIView.cpp 
inline CTreeViewInSDIDoc* CTreeViewInSDIView::GetDocument() 
   { return (CTreeViewInSDIDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_TREEVIEWINSDIVIEW_H__D3B9A01C_C5BF_4C61_B5E9_DA053695E84C__INCLUDED_)