www.pudn.com > sun-moon-earth.rar > sunDoc.cpp


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