【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了CPaint_3Doc.cpp提供大家参考,希望对大家有所帮助!
// CPaint_3Doc.cpp : implementation of the CCPaint_3Doc class
//
#include "stdafx.h"
#include "CPaint_3.h"
#include "CPaint_3Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCPaint_3Doc
IMPLEMENT_DYNCREATE(CCPaint_3Doc, CDocument)
BEGIN_MESSAGE_MAP(CCPaint_3Doc, CDocument)
//{{AFX_MSG_MAP(CCPaint_3Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCPaint_3Doc construction/destruction
CCPaint_3Doc::CCPaint_3Doc()
{
// TODO: add one-time construction code here
}
CCPaint_3Doc::~CCPaint_3Doc()
{
}
BOOL CCPaint_3Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCPaint_3Doc serialization
void CCPaint_3Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CCPaint_3Doc diagnostics
#ifdef _DEBUG
void CCPaint_3Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CCPaint_3Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCPaint_3Doc commands
上一篇:
CPaint_3.cpp
下一篇:
基于粒计算的增量式知识获取方法研究