ex14avw.cpp

来自「VC++技术内幕(第四版)的实例」· C++ 代码 · 共 75 行

CPP
75
字号
// ex14avw.cpp : implementation of the CEx14aView class
//

#include "stdafx.h"
#include "ex14a.h"

#include "ex14adoc.h"
#include "ex14avw.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CEx14aView

IMPLEMENT_DYNCREATE(CEx14aView, CView)

BEGIN_MESSAGE_MAP(CEx14aView, CView)
	//{{AFX_MSG_MAP(CEx14aView)
		// 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
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEx14aView construction/destruction

CEx14aView::CEx14aView()
{
	// TODO: add construction code here
}

CEx14aView::~CEx14aView()
{
}

/////////////////////////////////////////////////////////////////////////////
// CEx14aView drawing

void CEx14aView::OnDraw(CDC* pDC)
{
	CEx14aDoc* pDoc = GetDocument();

	// TODO: add draw code here
}



/////////////////////////////////////////////////////////////////////////////
// CEx14aView diagnostics

#ifdef _DEBUG
void CEx14aView::AssertValid() const
{
	CView::AssertValid();
}

void CEx14aView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CEx14aDoc* CEx14aView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEx14aDoc)));
	return (CEx14aDoc*) m_pDocument;
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CEx14aView message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?