// mfclosvView.cpp : implementation of the CMfclosvView class
//

#include "stdafx.h"
#include "mfclosv.h"

#include "mfclosvDoc.h"
#include "mfclosvView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMfclosvView

IMPLEMENT_DYNCREATE(CMfclosvView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CMfclosvView construction/destruction

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

}

CMfclosvView::~CMfclosvView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMfclosvView drawing

void CMfclosvView::OnDraw(CDC* pDC)
{
	CMfclosvDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	pDC->TextOut (0, 0, "This window shows nothing other than this sentence.", 51) ;
}

/////////////////////////////////////////////////////////////////////////////
// CMfclosvView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMfclosvView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMfclosvView message handlers
