// KursovoyView.cpp : implementation of the CKursovoyView class
//

#include "stdafx.h"
#include "Kursovoy.h"

#include "KursovoyDoc.h"
#include "KursovoyView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CKursovoyView

IMPLEMENT_DYNCREATE(CKursovoyView, CFormView)

BEGIN_MESSAGE_MAP(CKursovoyView, CFormView)
	ON_CBN_SELCHANGE(IDC_COMBO2, &CKursovoyView::OnCbnSelchangeCombo2)
	ON_EN_CHANGE(IDC_EDIT1, &CKursovoyView::OnEnChangeEdit1)
	ON_BN_CLICKED(IDC_BUTTON1, &CKursovoyView::OnBnClickedButton1)
END_MESSAGE_MAP()

// CKursovoyView construction/destruction

CKursovoyView::CKursovoyView()
	: CFormView(CKursovoyView::IDD)
{
	// TODO: add construction code here

}

CKursovoyView::~CKursovoyView()
{
}

void CKursovoyView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
}

BOOL CKursovoyView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CFormView::PreCreateWindow(cs);
}

void CKursovoyView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	ResizeParentToFit();

}


// CKursovoyView diagnostics

#ifdef _DEBUG
void CKursovoyView::AssertValid() const
{
	CFormView::AssertValid();
}

void CKursovoyView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

CKursovoyDoc* CKursovoyView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CKursovoyDoc)));
	return (CKursovoyDoc*)m_pDocument;
}
#endif //_DEBUG


// CKursovoyView message handlers

void CKursovoyView::OnCbnSelchangeCombo2()
{
	// TODO: Add your control notification handler code here
}

//void CKursovoyView::OnEnChangeEdit3()
//{
//	// TODO:  If this is a RICHEDIT control, the control will not
//	// send this notification unless you override the CFormView::OnInitDialog()
//	// function and call CRichEditCtrl().SetEventMask()
//	// with the ENM_CHANGE flag ORed into the mask.
//
//	// TODO:  Add your control notification handler code here
//}

void CKursovoyView::OnEnChangeEdit1()
{
	// TODO:  If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CFormView::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.

	// TODO:  Add your control notification handler code here
}

void CKursovoyView::OnBnClickedButton1()
{
	// TODO: Add your control notification handler code here
}