www.pudn.com > VC++practise.rar > DateBaseDoc.cpp


// DateBaseDoc.cpp : implementation of the CDateBaseDoc class 
// 
 
#include "stdafx.h" 
#include "DateBase.h" 
 
#include "DateBaseSet.h" 
#include "DateBaseDoc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDateBaseDoc 
 
IMPLEMENT_DYNCREATE(CDateBaseDoc, CDocument) 
 
BEGIN_MESSAGE_MAP(CDateBaseDoc, CDocument) 
	//{{AFX_MSG_MAP(CDateBaseDoc) 
		// 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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDateBaseDoc construction/destruction 
 
CDateBaseDoc::CDateBaseDoc() 
{ 
	// TODO: add one-time construction code here 
 
} 
 
CDateBaseDoc::~CDateBaseDoc() 
{ 
} 
 
BOOL CDateBaseDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CDateBaseDoc serialization 
 
void CDateBaseDoc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CDateBaseDoc diagnostics 
 
#ifdef _DEBUG 
void CDateBaseDoc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CDateBaseDoc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CDateBaseDoc commands