errordoc.cpp

来自「Nucleus Plus源代码」· C++ 代码 · 共 80 行

CPP
80
字号
// ErrorDoc.cpp : implementation file
//

#include "stdafx.h"
#include "WinDemo.h"
#include "ErrorDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CErrorDoc

IMPLEMENT_DYNCREATE(CErrorDoc, CDocument)

CErrorDoc::CErrorDoc()
{
}

BOOL CErrorDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}

CErrorDoc::~CErrorDoc()
{
}


BEGIN_MESSAGE_MAP(CErrorDoc, CDocument)
	//{{AFX_MSG_MAP(CErrorDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CErrorDoc diagnostics

#ifdef _DEBUG
void CErrorDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CErrorDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CErrorDoc serialization

void CErrorDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CErrorDoc commands

void CErrorDoc::SetTitle(LPCTSTR lpszTitle) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	CDocument::SetTitle("Embedded Target Information");
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?