// mymfc21Doc.cpp : implementation of the CMymfc21Doc class
//

#include "stdafx.h"
#include "mymfc21.h"

#include "mymfc21Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMymfc21Doc

IMPLEMENT_DYNCREATE(CMymfc21Doc, CDocument)

BEGIN_MESSAGE_MAP(CMymfc21Doc, CDocument)
	//{{AFX_MSG_MAP(CMymfc21Doc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMymfc21Doc construction/destruction

CMymfc21Doc::CMymfc21Doc()
{
	// TODO: add one-time construction code here

}

CMymfc21Doc::~CMymfc21Doc()
{
}

BOOL CMymfc21Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
        return FALSE;

    m_stringArray.SetSize(10);
    m_stringArray[0] = "The pennycandystore beyond the El";
    m_stringArray[1] = "is where I first";
    m_stringArray[2] = "                  fell in love";
    m_stringArray[3] = "                      with unreality";
    m_stringArray[4] = "Jellybeans glowed in the semi-gloom";
    m_stringArray[5] = "of that september afternoon";
    m_stringArray[6] = "A cat upon the counter moved among";
    m_stringArray[7] = "                     the licorice sticks";
    m_stringArray[8] = "                  and tootsie rolls";
    m_stringArray[9] = "           and Oh Boy Gum";

    return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CMymfc21Doc serialization

void CMymfc21Doc::Serialize(CArchive& ar)
{
	m_stringArray.Serialize(ar);
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc21Doc diagnostics

#ifdef _DEBUG
void CMymfc21Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CMymfc21Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMymfc21Doc commands

void CMymfc21Doc::DeleteContents() 
{
	// TODO: Add your specialized code here and/or call the base class
	// called before OnNewDocument() and when document is closed
    m_stringArray.RemoveAll();
}

