📄 45mapmakerdoc.h
字号:
// 45MapMakerDoc.h : interface of the CMy45MapMakerDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_45MAPMAKERDOC_H__A6D1D454_7853_436B_8371_711273372B2A__INCLUDED_)
#define AFX_45MAPMAKERDOC_H__A6D1D454_7853_436B_8371_711273372B2A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyMap.h"
#include "MyWall.h"
//文档类,用来加载地图信息,view的显示结果都基于该文档类里面的CMyMap变量
class CMy45MapMakerDoc : public CDocument
{
protected: // create from serialization only
CMy45MapMakerDoc();
DECLARE_DYNCREATE(CMy45MapMakerDoc)
// Attributes
public:
// Operations
public:
CMyMap m_myMap; //用来操作文件的,在程序运行期间只有一个,并且一直存在
//用来操作config文件的,在程序运行期间只有一个,并且一直存在
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy45MapMakerDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMy45MapMakerDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMy45MapMakerDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
// afx_msg void OnFileNew();
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_45MAPMAKERDOC_H__A6D1D454_7853_436B_8371_711273372B2A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -