?? testdoc.cpp
字號:
// TestDoc.cpp : CTestDoc 類的實現
//
#include "stdafx.h"
#include "Test.h"
#include "TestDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CTestDoc
IMPLEMENT_DYNCREATE(CTestDoc, CDocument)
BEGIN_MESSAGE_MAP(CTestDoc, CDocument)
END_MESSAGE_MAP()
// CTestDoc 構造/銷毀
CTestDoc::CTestDoc()
{
// TODO:在此添加一次性構造代碼
}
CTestDoc::~CTestDoc()
{
}
BOOL CTestDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代碼
// (SDI 文檔將重用該文檔)
return TRUE;
}
// CTestDoc 序列化
void CTestDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO:在此添加存儲代碼
}
else
{
// TODO:在此添加加載代碼
}
}
// CTestDoc 診斷
#ifdef _DEBUG
void CTestDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CTestDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CTestDoc 命令
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -