// Eg13_7View.cpp : implementation of the CEg13_7View class
//

#include "stdafx.h"
#include "Eg13_7.h"

#include "Eg13_7Doc.h"
#include "Eg13_7View.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEg13_7View

IMPLEMENT_DYNCREATE(CEg13_7View, CView)

BEGIN_MESSAGE_MAP(CEg13_7View, CView)
	//{{AFX_MSG_MAP(CEg13_7View)
		// 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
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEg13_7View construction/destruction

CEg13_7View::CEg13_7View()
{
	// TODO: add construction code here

}

CEg13_7View::~CEg13_7View()
{
}

BOOL CEg13_7View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CEg13_7View drawing

void CEg13_7View::OnDraw(CDC* pDC)
{
	CEg13_7Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CEg13_7View printing

BOOL CEg13_7View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CEg13_7View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CEg13_7View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CEg13_7View diagnostics

#ifdef _DEBUG
void CEg13_7View::AssertValid() const
{
	CView::AssertValid();
}

void CEg13_7View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CEg13_7Doc* CEg13_7View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEg13_7Doc)));
	return (CEg13_7Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CEg13_7View message handlers
