// mymfc27CView.cpp : implementation of the CMymfc27CView class
//

#include "stdafx.h"
#include "mymfc27C.h"

#include "mymfc27CDoc.h"
#include "mymfc27CView.h"

#include "ComputeDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMymfc27CView

IMPLEMENT_DYNCREATE(CMymfc27CView, CView)

BEGIN_MESSAGE_MAP(CMymfc27CView, CView)
	//{{AFX_MSG_MAP(CMymfc27CView)
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMymfc27CView construction/destruction

CMymfc27CView::CMymfc27CView()
{
	// TODO: add construction code here

}

CMymfc27CView::~CMymfc27CView()
{
}

BOOL CMymfc27CView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc27CView drawing

void CMymfc27CView::OnDraw(CDC* pDC)
{
	pDC->TextOut(30, 30, "Press the left mouse button here.");
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc27CView diagnostics

#ifdef _DEBUG
void CMymfc27CView::AssertValid() const
{
	CView::AssertValid();
}

void CMymfc27CView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CMymfc27CDoc* CMymfc27CView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc27CDoc)));
	return (CMymfc27CDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMymfc27CView message handlers

void CMymfc27CView::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	CComputeDlg dlg;
    dlg.DoModal();
}
