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