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