sample7view.cpp

来自「本小程序是关于 测绘方面的计算问题 有兴趣的大家来一起探讨」· C++ 代码 · 共 105 行

CPP
105
字号
// sample7View.cpp : implementation of the CSample7View class
//

#include "stdafx.h"
#include "sample7.h"

#include "sample7Doc.h"
#include "sample7View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSample7View

IMPLEMENT_DYNCREATE(CSample7View, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CSample7View construction/destruction

CSample7View::CSample7View()
{
	// TODO: add construction code here

}

CSample7View::~CSample7View()
{
}

BOOL CSample7View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CSample7View drawing

void CSample7View::OnDraw(CDC* pDC)
{
	CSample7Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CSample7View printing

BOOL CSample7View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CSample7View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CSample7View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CSample7View diagnostics

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

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

CSample7Doc* CSample7View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSample7Doc)));
	return (CSample7Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSample7View message handlers

⌨️ 快捷键说明

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