exampl~3.cpp

来自「vc++net很不错的一个工具」· C++ 代码 · 共 75 行

CPP
75
字号
// Example009View.cpp : CExample009View 类的实现
//

#include "stdafx.h"
#include "Example009.h"

#include "Example009Doc.h"
#include "Example009View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CExample009View

IMPLEMENT_DYNCREATE(CExample009View, CView)

BEGIN_MESSAGE_MAP(CExample009View, CView)
END_MESSAGE_MAP()

// CExample009View 构造/销毁

CExample009View::CExample009View()
{
	// TODO: 在此处添加构造代码

}

CExample009View::~CExample009View()
{
}

BOOL CExample009View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或
	// 样式

	return CView::PreCreateWindow(cs);
}

// CExample009View 绘制

void CExample009View::OnDraw(CDC* /*pDC*/)
{
	CExample009Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	// TODO: 在此处为本机数据添加绘制代码
}


// CExample009View 诊断

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

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

CExample009Doc* CExample009View::GetDocument() const // 非调试版本是内联的
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CExample009Doc)));
	return (CExample009Doc*)m_pDocument;
}
#endif //_DEBUG


// CExample009View 消息处理程序

⌨️ 快捷键说明

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