www.pudn.com > tab3.zip > tab3View.cpp, change:2012-11-22,size:1719b


// tab3View.cpp : Ctab3View 类的实现 
// 
 
#include "stdafx.h" 
#include "tab3.h" 
 
#include "tab3Doc.h" 
#include "tab3View.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#endif 
 
 
// Ctab3View 
 
IMPLEMENT_DYNCREATE(Ctab3View, CView) 
 
BEGIN_MESSAGE_MAP(Ctab3View, CView) 
	// 标准打印命令 
	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() 
 
// Ctab3View 构造/析构 
 
Ctab3View::Ctab3View() 
{ 
	// TODO: 在此处添加构造代码 
 
} 
 
Ctab3View::~Ctab3View() 
{ 
} 
 
BOOL Ctab3View::PreCreateWindow(CREATESTRUCT& cs) 
{ 
	// TODO: 在此处通过修改 
	//  CREATESTRUCT cs 来修改窗口类或样式 
 
	return CView::PreCreateWindow(cs); 
} 
 
// Ctab3View 绘制 
 
void Ctab3View::OnDraw(CDC* /*pDC*/) 
{ 
	Ctab3Doc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc); 
	if (!pDoc) 
		return; 
 
	// TODO: 在此处为本机数据添加绘制代码 
} 
 
 
// Ctab3View 打印 
 
BOOL Ctab3View::OnPreparePrinting(CPrintInfo* pInfo) 
{ 
	// 默认准备 
	return DoPreparePrinting(pInfo); 
} 
 
void Ctab3View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: 添加额外的打印前进行的初始化过程 
} 
 
void Ctab3View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: 添加打印后进行的清理过程 
} 
 
 
// Ctab3View 诊断 
 
#ifdef _DEBUG 
void Ctab3View::AssertValid() const 
{ 
	CView::AssertValid(); 
} 
 
void Ctab3View::Dump(CDumpContext& dc) const 
{ 
	CView::Dump(dc); 
} 
 
Ctab3Doc* Ctab3View::GetDocument() const // 非调试版本是内联的 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(Ctab3Doc))); 
	return (Ctab3Doc*)m_pDocument; 
} 
#endif //_DEBUG 
 
 
// Ctab3View 消息处理程序