starzdoc.cpp
来自「在mdi client窗口的客户区域显示移动的星星的程序」· C++ 代码 · 共 85 行
CPP
85 行
// StarzDoc.cpp : implementation of the CStarzDoc class
//
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "StdAfx.h"
#include "Starz.h"
#include "StarzDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CStarzDoc
IMPLEMENT_DYNCREATE(CStarzDoc, CDocument)
BEGIN_MESSAGE_MAP(CStarzDoc, CDocument)
//{{AFX_MSG_MAP(CStarzDoc)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStarzDoc construction/destruction
CStarzDoc::CStarzDoc()
{
}
CStarzDoc::~CStarzDoc()
{
}
BOOL CStarzDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CStarzDoc serialization
void CStarzDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CStarzDoc diagnostics
#ifdef _DEBUG
void CStarzDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CStarzDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CStarzDoc commands
void CStarzDoc::OnCloseDocument()
{
this->UpdateAllViews(0, HINT_CLOSE_DOCUMENT);
CDocument::OnCloseDocument();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?