【VC开源代码栏目提醒】:网学会员为广大网友收集整理了,MsgTest2Doc.cpp,希望对大家有所帮助!
// MsgTest2Doc.cpp : implementation of the CMsgTest2Doc class
//
#include "stdafx.h"
#include "MsgTest2.h"
#include "MsgTest2Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CMsgTest2Doc
IMPLEMENT_DYNCREATE(CMsgTest2Doc, CDocument)
BEGIN_MESSAGE_MAP(CMsgTest2Doc, CDocument)
END_MESSAGE_MAP()
// CMsgTest2Doc construction/destruction
CMsgTest2Doc::CMsgTest2Doc()
{
// TODO: add one-time construction code here
}
CMsgTest2Doc::~CMsgTest2Doc()
{
}
BOOL CMsgTest2Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
// CMsgTest2Doc serialization
void CMsgTest2Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
// CMsgTest2Doc diagnostics
#ifdef _DEBUG
void CMsgTest2Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CMsgTest2Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CMsgTest2Doc commands