mazeview.h

来自「回溯法实现的走迷宫方法」· C头文件 代码 · 共 76 行

H
76
字号
// mazeView.h : interface of the CMazeView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAZEVIEW_H__1503FA52_A06C_42AB_BE06_8392D9ABBC63__INCLUDED_)
#define AFX_MAZEVIEW_H__1503FA52_A06C_42AB_BE06_8392D9ABBC63__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "person.h"

class CMazeView : public CView
{
protected: // create from serialization only
	CMazeView();
	DECLARE_DYNCREATE(CMazeView)

// Attributes
public:
	CMazeDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMazeView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMazeView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMazeView)
	afx_msg void OnStart();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void Display(int x,int y);
private:
	CPerson *m_pPerson;
	CBitmap m_BgMap;
	CDC     m_BgDC;
	vector< vector<MYPOINT> > m_Map;
};

#ifndef _DEBUG  // debug version in mazeView.cpp
inline CMazeDoc* CMazeView::GetDocument()
   { return (CMazeDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAZEVIEW_H__1503FA52_A06C_42AB_BE06_8392D9ABBC63__INCLUDED_)

⌨️ 快捷键说明

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