migongview.cpp

来自「数据结构中栈算法的简单应用,通过程序模拟迷宫的生成和寻找出口的动态演示过程」· C++ 代码 · 共 105 行

CPP
105
字号
// migongView.cpp : implementation of the CMigongView class
//

#include "stdafx.h"
#include "migong.h"

#include "migongDoc.h"
#include "migongView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMigongView

IMPLEMENT_DYNCREATE(CMigongView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CMigongView construction/destruction

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

}

CMigongView::~CMigongView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMigongView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CMigongView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMigongView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMigongView message handlers

⌨️ 快捷键说明

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