www.pudn.com > 在VC++ 6.0下利用共享内存、消息实现内部进程通讯.rar > WFServerDoc.cpp
// WFServerDoc.cpp : implementation of the CWFServerDoc class
//
#include "stdafx.h"
#include "WFServer.h"
#include "WFServerDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWFServerDoc
IMPLEMENT_DYNCREATE(CWFServerDoc, CDocument)
BEGIN_MESSAGE_MAP(CWFServerDoc, CDocument)
//{{AFX_MSG_MAP(CWFServerDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CWFServerDoc construction/destruction
CWFServerDoc::CWFServerDoc()
{
// TODO: add one-time construction code here
}
CWFServerDoc::~CWFServerDoc()
{
}
BOOL CWFServerDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CWFServerDoc serialization
void CWFServerDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CWFServerDoc diagnostics
#ifdef _DEBUG
void CWFServerDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CWFServerDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CWFServerDoc commands