// mymfc8View.cpp : implementation of the CMymfc8View class
//

#include "stdafx.h"
#include "mymfc8.h"

#include "mymfc8Doc.h"
#include "mymfc8View.h"
#include "mymfc8Dialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMymfc8View

IMPLEMENT_DYNCREATE(CMymfc8View, CView)

BEGIN_MESSAGE_MAP(CMymfc8View, CView)
	//{{AFX_MSG_MAP(CMymfc8View)
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMymfc8View construction/destruction

CMymfc8View::CMymfc8View()
{
	// TODO: add construction code here

}

CMymfc8View::~CMymfc8View()
{
}

BOOL CMymfc8View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc8View drawing

void CMymfc8View::OnDraw(CDC* pDC)
{
	pDC->TextOut(30, 30, "Press the left mouse button here.");
}

/////////////////////////////////////////////////////////////////////////////
// CMymfc8View diagnostics

#ifdef _DEBUG
void CMymfc8View::AssertValid() const
{
	CView::AssertValid();
}

void CMymfc8View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CMymfc8Doc* CMymfc8View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc8Doc)));
	return (CMymfc8Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMymfc8View message handlers

void CMymfc8View::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	CMymfc8Dialog dlg;

    dlg.m_nTrackbar1 = 20;
    dlg.m_nTrackbar2 = 2; // index for 8.0
    dlg.m_nProgress = 70; // write-only
    dlg.m_dSpin = 3.2;

    dlg.DoModal();

}

