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

