/*
*********************************************************************
*
*	The Essence of OLE
*
*	Source code sample
*
*	Copyright (c) 1996, Rolling Thunder Computing, Ipswich MA
*
*	e-mail: essence@rollthunder.com
*	CompuServe: 73540,3430
*	Web: http://www.rollthunder.com
*
*	File Name: MFCDATA2DOC.CPP
*
*	Purpose: CDocument class MFCDATA2 sample app
*
*********************************************************************
*/

// mfcdata2Doc.cpp : implementation of the CMfcdata2Doc class
//

#include "stdafx.h"
#include "mfcdata2.h"

#include "mfcdata2Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMfcdata2Doc

IMPLEMENT_DYNCREATE(CMfcdata2Doc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CMfcdata2Doc construction/destruction

CMfcdata2Doc::CMfcdata2Doc()
{
	m_String = "Stupid text string" ;
}

CMfcdata2Doc::~CMfcdata2Doc()
{
}

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

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

	return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CMfcdata2Doc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CMfcdata2Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CMfcdata2Doc commands
