?? viewerdoc.cpp
字號(hào):
// ViewerDoc.cpp : CViewerDoc 類的實(shí)現(xiàn)
//
#include "stdafx.h"
#include "Viewer.h"
#include "ViewerDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CViewerDoc
IMPLEMENT_DYNCREATE(CViewerDoc, CDocument)
BEGIN_MESSAGE_MAP(CViewerDoc, CDocument)
END_MESSAGE_MAP()
// CViewerDoc 構(gòu)造/銷毀
CViewerDoc::CViewerDoc()
{
// TODO:在此添加一次性構(gòu)造代碼
}
CViewerDoc::~CViewerDoc()
{
}
BOOL CViewerDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代碼
// (SDI 文檔將重用該文檔)
return TRUE;
}
// CViewerDoc 序列化
void CViewerDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO:在此添加存儲(chǔ)代碼
}
else
{
// TODO:在此添加加載代碼
m_strContent.RemoveAll();
CString str;
while ( ar.ReadString( str ) )
{
m_strContent.Add( str ); // 將行文本添加到字符串集合類對(duì)象中
}
}
}
// CViewerDoc 診斷
#ifdef _DEBUG
void CViewerDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CViewerDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CViewerDoc 命令
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -