// mymfc15Doc.cpp : implementation of the CMymfc15Doc class
//

#include "stdafx.h"
#include "mymfc15.h"

#include "mymfc15Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMymfc15Doc

IMPLEMENT_DYNCREATE(CMymfc15Doc, CDocument)

BEGIN_MESSAGE_MAP(CMymfc15Doc, CDocument)
	//{{AFX_MSG_MAP(CMymfc15Doc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMymfc15Doc construction/destruction

CMymfc15Doc::CMymfc15Doc() : m_student("The default value", 0)
{
	// TODO: add one-time construction code here
	TRACE("Document object constructed\n");
}

CMymfc15Doc::~CMymfc15Doc()
{
	#ifdef _DEBUG
    Dump(afxDump);
	#endif // _DEBUG
}

BOOL CMymfc15Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CMymfc15Doc serialization

void CMymfc15Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc15Doc diagnostics

#ifdef _DEBUG
void CMymfc15Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CMymfc15Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
    dc << "\n" << m_student << "\n";
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMymfc15Doc commands

