www.gusucode.com > 基于VC++编程war3连连看源码程序 > war3连连看/源代码/linkDoc.cpp

    // linkDoc.cpp : implementation of the CLinkDoc class
//

#include "stdafx.h"
#include "link.h"

#include "linkDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLinkDoc

IMPLEMENT_DYNCREATE(CLinkDoc, CDocument)

BEGIN_MESSAGE_MAP(CLinkDoc, CDocument)
	//{{AFX_MSG_MAP(CLinkDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CLinkDoc construction/destruction

CLinkDoc::CLinkDoc()
{
}

CLinkDoc::~CLinkDoc()
{
}

BOOL CLinkDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}


void CLinkDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CLinkDoc diagnostics

#ifdef _DEBUG
void CLinkDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CLinkDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CLinkDoc commands