📄 03303940view.h
字号:
// 03303940View.h : interface of the CMy03303940View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_03303940VIEW_H__DBFC50D9_EB07_43F8_AE7B_8302D94AC7E6__INCLUDED_)
#define AFX_03303940VIEW_H__DBFC50D9_EB07_43F8_AE7B_8302D94AC7E6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMy03303940View : public CView
{
public:
BOOL sign;
COLORREF m_Color;
char m_Map[20][20];
int m_Mission;
CPoint m_ManPoision;
CBitmap *m_left;
CBitmap *m_right;
CBitmap *m_up;
CBitmap *m_down;
CBitmap *m_wall;
CBitmap *m_end;
CBitmap *m_unend;
CBitmap *m_ground;
CBitmap *m_box;
CBitmap m_begin;
public:
void loadmap(int Mission);
CPoint GetManPoision();
void DrawMap(CDC *hdc);
void DrawBackWall(int x,int y,CDC *hdc);
BOOL IsFinish();
void UpdateMap(UINT nChar);
void UpdateMap(int x1,int y1,int x2,int y2,int x3,int y3,int sign);
void AddBitmap(int x,int y,CDC *hdc,CBitmap *bitmap);
protected: // create from serialization only
CMy03303940View();
DECLARE_DYNCREATE(CMy03303940View)
// Attributes
public:
CMy03303940Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy03303940View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMy03303940View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMy03303940View)
afx_msg void OnSelect();
afx_msg void OnApplication();
afx_msg void OnNext();
afx_msg void OnBefore();
afx_msg void OnReplay();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnColor();
afx_msg void OnBegin();
afx_msg void OnUpdateBefore(CCmdUI* pCmdUI);
afx_msg void OnUpdateSelect(CCmdUI* pCmdUI);
afx_msg void OnUpdateReplay(CCmdUI* pCmdUI);
afx_msg void OnUpdateNext(CCmdUI* pCmdUI);
afx_msg void OnUpdateColor(CCmdUI* pCmdUI);
afx_msg void OnUpdateBegin(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 03303940View.cpp
inline CMy03303940Doc* CMy03303940View::GetDocument()
{ return (CMy03303940Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_03303940VIEW_H__DBFC50D9_EB07_43F8_AE7B_8302D94AC7E6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -