// mymfc25AView.cpp : implementation of the CMymfc25AView class
//

#include "stdafx.h"
#include "mymfc25A.h"

#include "mymfc25ADoc.h"
#include "mymfc25AView.h"

#include "Dialog1.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMymfc25AView

IMPLEMENT_DYNCREATE(CMymfc25AView, CView)

BEGIN_MESSAGE_MAP(CMymfc25AView, CView)
	//{{AFX_MSG_MAP(CMymfc25AView)
	ON_WM_LBUTTONDOWN()
	//}}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()

/////////////////////////////////////////////////////////////////////////////
// CMymfc25AView construction/destruction

CMymfc25AView::CMymfc25AView()
{
	// TODO: add construction code here

}

CMymfc25AView::~CMymfc25AView()
{
}

BOOL CMymfc25AView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc25AView drawing

void CMymfc25AView::OnDraw(CDC* pDC)
{
	// TODO: add draw code for native data here
	pDC->TextOut(30, 30, "Press the left mouse button here.");
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc25AView printing

BOOL CMymfc25AView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CMymfc25AView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CMymfc25AView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc25AView diagnostics

#ifdef _DEBUG
void CMymfc25AView::AssertValid() const
{
	CView::AssertValid();
}

void CMymfc25AView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CMymfc25ADoc* CMymfc25AView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc25ADoc)));
	return (CMymfc25ADoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMymfc25AView message handlers

void CMymfc25AView::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	CDialog1 dlg;
    dlg.DoModal();
}

