www.pudn.com > bitmapsave.rar > gl2Doc.cpp, change:2005-11-23,size:1682b


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