www.pudn.com > work12_2.rar > yong24Doc.cpp


// yong24Doc.cpp : implementation of the CYong24Doc class
//

#include "stdafx.h"
#include "yong24.h"

#include "yong24Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CYong24Doc

IMPLEMENT_DYNCREATE(CYong24Doc, CDocument)

BEGIN_MESSAGE_MAP(CYong24Doc, CDocument)
//{{AFX_MSG_MAP(CYong24Doc)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CYong24Doc construction/destruction

CYong24Doc::CYong24Doc()
{
// TODO: add one-time construction code here

}

CYong24Doc::~CYong24Doc()
{
}

BOOL CYong24Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;

// TODO: add reinitialization code here
// (SDI documents will reuse this document)

return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CYong24Doc serialization

void CYong24Doc::Serialize(CArchive&amt; ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}

/////////////////////////////////////////////////////////////////////////////
// CYong24Doc diagnostics

#ifdef _DEBUG
void CYong24Doc::AssertValid() const
{
CDocument::AssertValid();
}

void CYong24Doc::Dump(CDumpContext&amt; dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CYong24Doc commands