www.pudn.com > hidedrive.rar > test1Doc.cpp


// test1Doc.cpp : implementation of the Ctest1Doc class
//

#include "stdafx.h"
#include "test1.h"

#include "test1Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// Ctest1Doc

IMPLEMENT_DYNCREATE(Ctest1Doc, CDocument)

BEGIN_MESSAGE_MAP(Ctest1Doc, CDocument)
END_MESSAGE_MAP()


// Ctest1Doc construction/destruction

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

}

Ctest1Doc::~Ctest1Doc()
{
}

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

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

return TRUE;
}




// Ctest1Doc serialization

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


// Ctest1Doc diagnostics

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

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


// Ctest1Doc commands