// mfchelloausvView.cpp : implementation of the CMfchelloausvView class
//

#include "stdafx.h"
#include "mfchelloausv.h"

#include "mfchelloausvDoc.h"
#include "mfchelloausvView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMfchelloausvView

IMPLEMENT_DYNCREATE(CMfchelloausvView, CView)

BEGIN_MESSAGE_MAP(CMfchelloausvView, CView)
	//{{AFX_MSG_MAP(CMfchelloausvView)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMfchelloausvView construction/destruction

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

}

CMfchelloausvView::~CMfchelloausvView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMfchelloausvView drawing

void CMfchelloausvView::OnDraw(CDC* pDC)
{
	CMfchelloausvDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	pDC->TextOut (0, 0, pDoc->m_HelloMessage) ;
}

/////////////////////////////////////////////////////////////////////////////
// CMfchelloausvView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMfchelloausvView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMfchelloausvView message handlers
