www.pudn.com > CarCrash.rar > CarCrashDoc.cpp


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