www.gusucode.com > 《C++高级语言程序设计》PPT及全书例子源代码-源码程序 > 《C++高级语言程序设计》PPT及全书例子源代码-源码程序/code/C++例题程序/第10章/s10_2_3/s10_2Doc.cpp

    //Download by http://www.NewXing.com
// s10_2Doc.cpp : implementation of the CS10_2Doc class
//

#include "stdafx.h"
#include "s10_2.h"

#include "s10_2Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CS10_2Doc

IMPLEMENT_DYNCREATE(CS10_2Doc, CDocument)

BEGIN_MESSAGE_MAP(CS10_2Doc, CDocument)
	//{{AFX_MSG_MAP(CS10_2Doc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CS10_2Doc construction/destruction

CS10_2Doc::CS10_2Doc()
{
	// TODO: add one-time construction code here

}

CS10_2Doc::~CS10_2Doc()
{
}

BOOL CS10_2Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CS10_2Doc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CS10_2Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CS10_2Doc commands