【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了CPaint_1Doc.cpp相关资料,希望对各位网友有所帮助!
// CPaint_1Doc.cpp : implementation of the CCPaint_1Doc class
//
#include "stdafx.h"
#include "CPaint_1.h"
#include "CPaint_1Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCPaint_1Doc
IMPLEMENT_DYNCREATE(CCPaint_1Doc, CDocument)
BEGIN_MESSAGE_MAP(CCPaint_1Doc, CDocument)
//{{AFX_MSG_MAP(CCPaint_1Doc)
// 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_1Doc construction/destruction
CCPaint_1Doc::CCPaint_1Doc()
{
// TODO: add one-time construction code here
}
CCPaint_1Doc::~CCPaint_1Doc()
{
}
BOOL CCPaint_1Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCPaint_1Doc serialization
void CCPaint_1Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CCPaint_1Doc diagnostics
#ifdef _DEBUG
void CCPaint_1Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CCPaint_1Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCPaint_1Doc commands
上一篇:
CPaint_1.cpp
下一篇:
"夜"