www.pudn.com > test3.zip > TestView2.cpp


// TestView2.cpp : 实现文件 
// 
 
#include "stdafx.h" 
#include "test3.h" 
#include "TestView2.h" 
#include ".\testview2.h" 
 
 
// CTestView2 
 
IMPLEMENT_DYNCREATE(CTestView2, CView) 
 
CTestView2::CTestView2() 
{ 
} 
 
CTestView2::~CTestView2() 
{ 
} 
 
BEGIN_MESSAGE_MAP(CTestView2, CView) 
END_MESSAGE_MAP() 
 
 
// CTestView2 绘图 
 
void CTestView2::OnDraw(CDC* pDC) 
{ 
	CDocument* pDoc = GetDocument(); 
	// TODO: 在此添加绘制代码 
	pDC->TextOut(10,10,"this is view 2") ; 
} 
 
 
// CTestView2 诊断 
 
#ifdef _DEBUG 
void CTestView2::AssertValid() const 
{ 
	CView::AssertValid(); 
} 
 
void CTestView2::Dump(CDumpContext& dc) const 
{ 
	CView::Dump(dc); 
} 
#endif //_DEBUG 
 
 
// CTestView2 消息处理程序