📄 maptestdoc.cpp
字号:
// MapTestDoc.cpp : implementation of the CMapTestDoc class
//
/*
* This sample application and corresponding sample code is provided for
* example purposes only. It has not undergone rigorous testing and as
* such should not be shipped as part of a final application without
* extensive testing on the part of the organization releasing the
* end-user product.
*/
#include "stdafx.h"
#include "MapTest.h"
#include "MapTestDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMapTestDoc
IMPLEMENT_DYNCREATE(CMapTestDoc, CDocument)
BEGIN_MESSAGE_MAP(CMapTestDoc, CDocument)
//{{AFX_MSG_MAP(CMapTestDoc)
// 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(CMapTestDoc, CDocument)
//{{AFX_DISPATCH_MAP(CMapTestDoc)
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IMapTes to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {6F884F01-3104-11D2-936A-0060978C27AF}
static const IID IID_IMapTes =
{ 0x6f884f01, 0x3104, 0x11d2, { 0x93, 0x6a, 0x0, 0x60, 0x97, 0x8c, 0x27, 0xaf } };
BEGIN_INTERFACE_MAP(CMapTestDoc, CDocument)
INTERFACE_PART(CMapTestDoc, IID_IMapTes, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMapTestDoc construction/destruction
CMapTestDoc::CMapTestDoc()
{
// TODO: add one-time construction code here
EnableAutomation();
AfxOleLockApp();
}
CMapTestDoc::~CMapTestDoc()
{
AfxOleUnlockApp();
}
BOOL CMapTestDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMapTestDoc serialization
void CMapTestDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CMapTestDoc diagnostics
#ifdef _DEBUG
void CMapTestDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CMapTestDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMapTestDoc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -