www.gusucode.com > VC++编写的SQL服务端和客户端源码程序 > VC++编写的SQL服务端和客户端源码程序\code\Client\HelpDoc.cpp

    //Download by http://www.NewXing.com
// HelpDoc.cpp : implementation file
//

#include "stdafx.h"
#include "Client.h"
#include "HelpDoc.h"
#include "HelpView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CHelpDoc

IMPLEMENT_DYNCREATE(CHelpDoc, CDocument)

CHelpDoc::CHelpDoc()
{
}

BOOL CHelpDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}

CHelpDoc::~CHelpDoc()
{
}


BEGIN_MESSAGE_MAP(CHelpDoc, CDocument)
	//{{AFX_MSG_MAP(CHelpDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CHelpDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CHelpDoc serialization

void CHelpDoc::Serialize(CArchive& ar)
{
	CEditView* pView = (CEditView*)m_viewList.GetHead();
	ASSERT_KINDOF(CEditView, pView);
	pView->SerializeRaw(ar);
}

/////////////////////////////////////////////////////////////////////////////
// CHelpDoc commands