|
// DocManager2DemoDoc.cpp : implementation of the CHappyDoc class
//
#include "stdafx.h"
#include "DocManager2Demo.h"
#include "DocManager2DemoDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CHappyDoc
IMPLEMENT_DYNCREATE(CHappyDoc, CDocument)
BEGIN_MESSAGE_MAP(CHappyDoc, CDocument)
END_MESSAGE_MAP()
// CHappyDoc construction/destruction
CHappyDoc::CHappyDoc()
{
// TODO: add one-time construction code here
}
CHappyDoc::~CHappyDoc()
{
}
BOOL CHappyDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
// CHappyDoc serialization
void CHappyDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
// CHappyDoc diagnostics
#ifdef _DEBUG
void CHappyDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CHappyDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CHappyDoc commands
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.