【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了CSDI_3Doc.cpp提供大家参考,希望对大家有所帮助!
// CSDI_3Doc.cpp : implementation of the CCSDI_3Doc class
//
#include "stdafx.h"
#include "CSDI_3.h"
#include "CSDI_3Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCSDI_3Doc
IMPLEMENT_DYNCREATE(CCSDI_3Doc, CDocument)
BEGIN_MESSAGE_MAP(CCSDI_3Doc, CDocument)
//{{AFX_MSG_MAP(CCSDI_3Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCSDI_3Doc construction/destruction
CCSDI_3Doc::CCSDI_3Doc()
{
// TODO: add one-time construction code here
}
CCSDI_3Doc::~CCSDI_3Doc()
{
}
BOOL CCSDI_3Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_3Doc serialization
void CCSDI_3Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_3Doc diagnostics
#ifdef _DEBUG
void CCSDI_3Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CCSDI_3Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCSDI_3Doc commands