www.pudn.com > VTdemoo.rar > VTdemoView.cpp, change:2004-03-24,size:2579b


// VTdemoView.cpp : implementation of the CVTdemoView class 
// 
 
#include "stdafx.h" 
#include "VTdemo.h" 
 
#include "VTdemoDoc.h" 
#include "VTdemoView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CVTdemoView 
 
IMPLEMENT_DYNCREATE(CVTdemoView, CView) 
 
BEGIN_MESSAGE_MAP(CVTdemoView, CView) 
	//{{AFX_MSG_MAP(CVTdemoView) 
		// NOTE - the ClassWizard will add and remove mapping macros here. 
		//    DO NOT EDIT what you see in these blocks of generated code! 
	//}}AFX_MSG_MAP 
	// Standard printing commands 
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) 
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) 
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CVTdemoView construction/destruction 
 
CVTdemoView::CVTdemoView() 
{ 
	// TODO: add construction code here 
 
} 
 
CVTdemoView::~CVTdemoView() 
{ 
} 
 
BOOL CVTdemoView::PreCreateWindow(CREATESTRUCT& cs) 
{ 
	// TODO: Modify the Window class or styles here by modifying 
	//  the CREATESTRUCT cs 
 
	return CView::PreCreateWindow(cs); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CVTdemoView drawing 
 
void CVTdemoView::OnDraw(CDC* pDC) 
{ 
	CVTdemoDoc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc); 
	// TODO: add draw code for native data here 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CVTdemoView printing 
 
BOOL CVTdemoView::OnPreparePrinting(CPrintInfo* pInfo) 
{ 
	// default preparation 
	return DoPreparePrinting(pInfo); 
} 
 
void CVTdemoView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: add extra initialization before printing 
} 
 
void CVTdemoView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: add cleanup after printing 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CVTdemoView diagnostics 
 
#ifdef _DEBUG 
void CVTdemoView::AssertValid() const 
{ 
	CView::AssertValid(); 
} 
 
void CVTdemoView::Dump(CDumpContext& dc) const 
{ 
	CView::Dump(dc); 
} 
 
CVTdemoDoc* CVTdemoView::GetDocument() // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CVTdemoDoc))); 
	return (CVTdemoDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CVTdemoView message handlers