www.pudn.com > fbh_bezier.rar > bezierDoc.cpp
// bezierDoc.cpp : implementation of the CBezierDoc class
//
#include "stdafx.h"
#include "bezier.h"
#include "bezierDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBezierDoc
IMPLEMENT_DYNCREATE(CBezierDoc, CDocument)
BEGIN_MESSAGE_MAP(CBezierDoc, CDocument)
//{{AFX_MSG_MAP(CBezierDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CBezierDoc construction/destruction
CBezierDoc::CBezierDoc()
{
// TODO: add one-time construction code here
}
CBezierDoc::~CBezierDoc()
{
}
BOOL CBezierDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CBezierDoc serialization
void CBezierDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CBezierDoc diagnostics
#ifdef _DEBUG
void CBezierDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CBezierDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBezierDoc commands