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