www.pudn.com > RMS2000_C.rar > ChaDoc.cpp


// ChaDoc.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "DrawCli.h" 
#include "ChaDoc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CChaDoc 
 
IMPLEMENT_DYNCREATE(CChaDoc, CDocument) 
 
CChaDoc::CChaDoc() 
{ 
} 
 
CChaDoc::CChaDoc(char* title) 
{ 
 	SetTitle(title);  
} 
 
BOOL CChaDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
	return TRUE; 
} 
 
CChaDoc::~CChaDoc() 
{ 
} 
 
 
BEGIN_MESSAGE_MAP(CChaDoc, CDocument) 
	//{{AFX_MSG_MAP(CChaDoc) 
		// NOTE - the ClassWizard will add and remove mapping macros here. 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CChaDoc diagnostics 
 
#ifdef _DEBUG 
void CChaDoc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CChaDoc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CChaDoc serialization 
 
void CChaDoc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CChaDoc commands