// mymfcView.cpp : implementation of the CMymfcView class
//

#include "stdafx.h"
#include "mymfc.h"

#include "mymfcDoc.h"
#include "mymfcView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMymfcView

IMPLEMENT_DYNCREATE(CMymfcView, CView)

BEGIN_MESSAGE_MAP(CMymfcView, CView)
	//{{AFX_MSG_MAP(CMymfcView)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMymfcView construction/destruction

CMymfcView::CMymfcView()
{
	// TODO: add construction code here

}

CMymfcView::~CMymfcView()
{
}

BOOL CMymfcView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMymfcView drawing

void CMymfcView::OnDraw(CDC* pDC)
{

	// TODO: add draw code for native data here
	// prints in default font and size, top left corner
	pDC->TextOut(5, 0, "Hello MFC world!");
    // selects a brush for the circle interior
    pDC->SelectStockObject(GRAY_BRUSH);
    // draws a gray circle 100 units in diameter
    pDC->Ellipse(CRect(0, 20, 100, 120));

}

/////////////////////////////////////////////////////////////////////////////
// CMymfcView diagnostics

#ifdef _DEBUG
void CMymfcView::AssertValid() const
{
	CView::AssertValid();
}

void CMymfcView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CMymfcDoc* CMymfcView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfcDoc)));
	return (CMymfcDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMymfcView message handlers

