📄 learndoc.cpp
字号:
// LearnDoc.cpp : implementation of the CLearnDoc class
//
#include "stdafx.h"
#include "Learn.h"
#include "LearnDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLearnDoc
IMPLEMENT_DYNCREATE(CLearnDoc, CDocument)
BEGIN_MESSAGE_MAP(CLearnDoc, CDocument)
//{{AFX_MSG_MAP(CLearnDoc)
ON_COMMAND(ID_MAP1, OnMap1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLearnDoc construction/destruction
CLearnDoc::CLearnDoc()
{
// TODO: add one-time construction code here
}
CLearnDoc::~CLearnDoc()
{
}
BOOL CLearnDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CLearnDoc serialization
void CLearnDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CLearnDoc diagnostics
#ifdef _DEBUG
void CLearnDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CLearnDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CLearnDoc commands
//void CLearnDoc::OnTest()
//{
// // TODO: Add your command handler code here
// AfxMessageBox("TEST");
//
//}
void CLearnDoc::OnMap1()
{
// TODO: Add your command handler code here
// AfxMessageBox("maop");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -