📄 mapappdoc.cpp
字号:
// MapAppDoc.cpp : implementation of the CMapAppDoc class
//
#include "stdafx.h"
#include "MapApp.h"
#include "MapAppDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMapAppDoc
IMPLEMENT_DYNCREATE(CMapAppDoc, CDocument)
BEGIN_MESSAGE_MAP(CMapAppDoc, CDocument)
//{{AFX_MSG_MAP(CMapAppDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CMapAppDoc, CDocument)
//{{AFX_DISPATCH_MAP(CMapAppDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IMapApp to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {9B0AEFF5-69DE-11D5-A8BB-0000E8E7DC45}
static const IID IID_IMapApp =
{ 0x9b0aeff5, 0x69de, 0x11d5, { 0xa8, 0xbb, 0x0, 0x0, 0xe8, 0xe7, 0xdc, 0x45 } };
BEGIN_INTERFACE_MAP(CMapAppDoc, CDocument)
INTERFACE_PART(CMapAppDoc, IID_IMapApp, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMapAppDoc construction/destruction
CMapAppDoc::CMapAppDoc()
{
// TODO: add one-time construction code here
EnableAutomation();
AfxOleLockApp();
}
CMapAppDoc::~CMapAppDoc()
{
AfxOleUnlockApp();
}
BOOL CMapAppDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMapAppDoc serialization
void CMapAppDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CMapAppDoc diagnostics
#ifdef _DEBUG
void CMapAppDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CMapAppDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMapAppDoc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -