topical media & game development
basic-program-code-12-Sketcher-ch12-SketcherDoc.c
? /
basic-program-code-12-Sketcher-ch12-SketcherDoc.c
// SketcherDoc.cpp : implementation of the CSketcherDoc class
//
include <stdafx.h>
include <Sketcher.h>
include <SketcherDoc.h>
ifdef _DEBUG
define new DEBUG_NEW
endif
// CSketcherDoc
IMPLEMENT_DYNCREATE(CSketcherDoc, CDocument)
BEGIN_MESSAGE_MAP(CSketcherDoc, CDocument)
END_MESSAGE_MAP()
// CSketcherDoc construction/destruction
CSketcherDoc::CSketcherDoc()
{
// TODO: add one-time construction code here
}
CSketcherDoc::~CSketcherDoc()
{
}
BOOL CSketcherDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
// CSketcherDoc serialization
void CSketcherDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
// CSketcherDoc diagnostics
ifdef _DEBUG
void CSketcherDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CSketcherDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
endif //_DEBUG
// CSketcherDoc commands
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.