📄 test6view.h
字号:
// Test6View.h : interface of the CTest6View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TEST6VIEW_H__F9F26C47_874E_11D4_BFCB_5254AB12D75B__INCLUDED_)
#define AFX_TEST6VIEW_H__F9F26C47_874E_11D4_BFCB_5254AB12D75B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MAPWIDTH 160
#define MAPHEIGHT 120
#define TILEWIDTH 16
#define TILEHEIGHT 16
class CTest6View : public CScrollView
{
protected: // create from serialization only
CTest6View();
DECLARE_DYNCREATE(CTest6View)
// Attributes
public:
CTest6Doc* GetDocument();
int m_Map[MAPHEIGHT][MAPWIDTH];
int m_nFlag;
BOOL m_bIsModified;
CRect m_rectClient;
CPoint m_ptStart,m_ptEnd,m_ptTemp1,m_ptTemp2;
CStatusBar *m_pStatusBar;
CString m_strFileName;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTest6View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL IsModified();
virtual ~CTest6View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTest6View)
afx_msg void OnStartPoint();
afx_msg void OnUpdateStartPoint(CCmdUI* pCmdUI);
afx_msg void OnGo();
afx_msg void OnBlack();
afx_msg void OnUpdateBlack(CCmdUI* pCmdUI);
afx_msg void OnEndPoint();
afx_msg void OnUpdateEndPoint(CCmdUI* pCmdUI);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRefresh();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnNewMap();
afx_msg void OnOpenMap();
afx_msg void OnSaveMap();
afx_msg void OnSaveMapAs();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Test6View.cpp
inline CTest6Doc* CTest6View::GetDocument()
{ return (CTest6Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEST6VIEW_H__F9F26C47_874E_11D4_BFCB_5254AB12D75B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -