www.pudn.com > µØ±íÌùͼ.zip > GeoDrawDoc.cpp


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