📄 childview.h
字号:
// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHILDVIEW_H__9A424E38_115F_45E1_BE1D_FC8271FCC899__INCLUDED_)
#define AFX_CHILDVIEW_H__9A424E38_115F_45E1_BE1D_FC8271FCC899__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CChildView window
const int MAX_X=19;
const int MAX_Y=11;
enum {BLACK,WALL,FLOOR,BOY,DES,BOXNO,BOXYES};
class CChildView : public CWnd
{
// Construction
public:
CChildView();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChildView)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CChildView();
// Generated message map functions
protected:
afx_msg void OnUpdatePosition(CCmdUI *pCmdUI);
//{{AFX_MSG(CChildView)
afx_msg void OnPaint();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnEditBlack();
afx_msg void OnEditBoxno();
afx_msg void OnUpdateEditBoxno(CCmdUI* pCmdUI);
afx_msg void OnEditFloor();
afx_msg void OnEditBoxyes();
afx_msg void OnEditBoy();
afx_msg void OnEditClear();
afx_msg void OnEditDes();
afx_msg void OnEditWall();
afx_msg void OnUpdateEditBoxyes(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditBoy(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditBlack(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditDes(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditFloor(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditWall(CCmdUI* pCmdUI);
afx_msg void OnFileOpen();
afx_msg void OnFileSave();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int m_stage;
void DrawMap(int x,int y,int map);
CBitmap* m_pbmMap;
BYTE map[MAX_X][MAX_Y];
int curMap;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHILDVIEW_H__9A424E38_115F_45E1_BE1D_FC8271FCC899__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -