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