📄 mapview.h
字号:
// mapView.h : CmapView 类的接口
//
#pragma once
#include "maper.h"
#include "atltypes.h"
#include "afxwin.h"
#include "setparam.h"
class CmapView : public CView
{
protected: // 仅从序列化创建
CmapView();
DECLARE_DYNCREATE(CmapView)
// 属性
public:
CmapDoc* GetDocument() const;
// 操作
public:
// 重写 z
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
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);
// 实现
public:
virtual ~CmapView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
public:
Cmaper* m_map;
// afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
private:
CPoint m_pt;
CBitmap m_bPath;
CBitmap m_bWall;
CBitmap m_bUnEnable;
CBitmap m_bEnter;
CBitmap m_bExit;
CBitmap m_bHuman;
public:
afx_msg void OnTimer(UINT nIDEvent);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
// afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
// afx_msg void OnMouseMove(UINT nFlags, CPoint point);
// afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
int m_flag;
afx_msg void OnDraw1();
afx_msg void OnMenu();
afx_msg void OnDraw2();
afx_msg void OnDraw3();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
bool m_bool;
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnDrawExit();
afx_msg void OnExitMaze();
afx_msg void On32786();
afx_msg void OnSetMap();
afx_msg void OnPaint();
};
#ifndef _DEBUG // mapView.cpp 的调试版本
inline CmapDoc* CmapView::GetDocument() const
{ return reinterpret_cast<CmapDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -