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