// myex33aDoc.cpp : implementation of the CMyex33aDoc class
//

#include "stdafx.h"
#include "myex33a.h"

#include "myex33aDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyex33aDoc

IMPLEMENT_DYNCREATE(CMyex33aDoc, CDocument)

BEGIN_MESSAGE_MAP(CMyex33aDoc, CDocument)
	//{{AFX_MSG_MAP(CMyex33aDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMyex33aDoc construction/destruction

CMyex33aDoc::CMyex33aDoc()
{
	// TODO: add one-time construction code here

}

CMyex33aDoc::~CMyex33aDoc()
{
}

BOOL CMyex33aDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	((CEditView*)m_viewList.GetHead())->SetWindowText(NULL);

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CMyex33aDoc serialization

void CMyex33aDoc::Serialize(CArchive& ar)
{
	// CEditView contains an edit control which handles all serialization
	((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
}

/////////////////////////////////////////////////////////////////////////////
// CMyex33aDoc diagnostics

#ifdef _DEBUG
void CMyex33aDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CMyex33aDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMyex33aDoc commands

BOOL CMyex33aDoc::SaveModified() 
{
	// TODO: Add your specialized code here and/or call the base class
	return TRUE; // eliminates "save doc" message on exit
}

