www.gusucode.com > VC++开发的魔方游戏的源程序-源码程序 > VC++开发的魔方游戏的源程序-源码程序\code\MxCubesDoc.cpp
// MxCubesDoc.cpp : implementation of the CMxCubesDoc class // Download by http://www.NewXing.com #include "stdafx.h" #include "MxCubes.h" #include "MxCubesDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMxCubesDoc IMPLEMENT_DYNCREATE(CMxCubesDoc, CDocument) BEGIN_MESSAGE_MAP(CMxCubesDoc, CDocument) //{{AFX_MSG_MAP(CMxCubesDoc) // 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() ///////////////////////////////////////////////////////////////////////////// // CMxCubesDoc construction/destruction CMxCubesDoc::CMxCubesDoc() { // TODO: add one-time construction code here } CMxCubesDoc::~CMxCubesDoc() { } BOOL CMxCubesDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CMxCubesDoc serialization void CMxCubesDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CMxCubesDoc diagnostics #ifdef _DEBUG void CMxCubesDoc::AssertValid() const { CDocument::AssertValid(); } void CMxCubesDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMxCubesDoc commands