【VC开源代码栏目提醒】:本文主要为网学会员提供EXPANDINGDIALOGSAMPLEDOC.CPP,希望对需要EXPANDINGDIALOGSAMPLEDOC.CPP网友有所帮助,学习一下!
// ExpandingDialogSampleDoc.cpp : implementation of the CExpandingDialogSampleDoc class
//
#include "stdafx.h"
#include "ExpandingDialogSample.h"
#include "ExpandingDialogSampleDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleDoc
IMPLEMENT_DYNCREATE(CExpandingDialogSampleDoc, CDocument)
BEGIN_MESSAGE_MAP(CExpandingDialogSampleDoc, CDocument)
//{{AFX_MSG_MAP(CExpandingDialogSampleDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleDoc construction/destruction
CExpandingDialogSampleDoc::CExpandingDialogSampleDoc()
{
// TODO: add one-time construction code here
}
CExpandingDialogSampleDoc::~CExpandingDialogSampleDoc()
{
}
BOOL CExpandingDialogSampleDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleDoc serialization
void CExpandingDialogSampleDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleDoc diagnostics
#ifdef _DEBUG
void CExpandingDialogSampleDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CExpandingDialogSampleDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleDoc commands