【VC开源代码栏目提醒】:本文主要为网学会员提供CDraw_4Doc.cpp,希望对需要CDraw_4Doc.cpp网友有所帮助,学习一下!
// CDraw_4Doc.cpp : implementation of the CCDraw_4Doc class
//
#include "stdafx.h"
#include "CDraw_4.h"
#include "CDraw_4Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCDraw_4Doc
IMPLEMENT_DYNCREATE(CCDraw_4Doc, CDocument)
BEGIN_MESSAGE_MAP(CCDraw_4Doc, CDocument)
//{{AFX_MSG_MAP(CCDraw_4Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCDraw_4Doc construction/destruction
CCDraw_4Doc::CCDraw_4Doc()
{
// TODO: add one-time construction code here
}
CCDraw_4Doc::~CCDraw_4Doc()
{
}
BOOL CCDraw_4Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCDraw_4Doc serialization
void CCDraw_4Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CCDraw_4Doc diagnostics
#ifdef _DEBUG
void CCDraw_4Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CCDraw_4Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCDraw_4Doc commands
上一篇:
CDraw_4.cpp
下一篇:
如何当一个轻松的班主任