cmake/Tests/MFC/mfc1/mfc1Doc.cpp

69 lines
1005 B
C++
Raw Normal View History

2012-02-18 12:40:36 +02:00
// mfc1Doc.cpp : implementation of the Cmfc1Doc class
//
#include "stdafx.h"
2016-07-09 11:21:54 +02:00
2012-02-18 12:40:36 +02:00
#include "mfc1.h"
#include "mfc1Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Cmfc1Doc
IMPLEMENT_DYNCREATE(Cmfc1Doc, CDocument)
BEGIN_MESSAGE_MAP(Cmfc1Doc, CDocument)
END_MESSAGE_MAP()
// Cmfc1Doc construction/destruction
Cmfc1Doc::Cmfc1Doc()
{
2016-07-09 11:21:54 +02:00
// TODO: add one-time construction code here
2012-02-18 12:40:36 +02:00
}
Cmfc1Doc::~Cmfc1Doc()
{
}
BOOL Cmfc1Doc::OnNewDocument()
{
2016-07-09 11:21:54 +02:00
if (!CDocument::OnNewDocument())
return FALSE;
2012-02-18 12:40:36 +02:00
2016-07-09 11:21:54 +02:00
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
2012-02-18 12:40:36 +02:00
2016-07-09 11:21:54 +02:00
return TRUE;
2012-02-18 12:40:36 +02:00
}
// Cmfc1Doc serialization
void Cmfc1Doc::Serialize(CArchive& ar)
{
2016-07-09 11:21:54 +02:00
if (ar.IsStoring()) {
// TODO: add storing code here
} else {
// TODO: add loading code here
}
2012-02-18 12:40:36 +02:00
}
// Cmfc1Doc diagnostics
#ifdef _DEBUG
void Cmfc1Doc::AssertValid() const
{
2016-07-09 11:21:54 +02:00
CDocument::AssertValid();
2012-02-18 12:40:36 +02:00
}
void Cmfc1Doc::Dump(CDumpContext& dc) const
{
2016-07-09 11:21:54 +02:00
CDocument::Dump(dc);
2012-02-18 12:40:36 +02:00
}
#endif //_DEBUG
// Cmfc1Doc commands