⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 starzdoc.cpp

📁 在mdi client窗口的客户区域显示移动的星星的程序
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -