// FloatPanel.cpp : implementation file
//

#include "stdafx.h"
#include "mw4gameed2.h"
#include "FloatPanel.h"

/////////////////////////////////////////////////////////////////////////////
// CFloatPanel dialog


CFloatPanel::CFloatPanel(float *dpt,CString fname,CWnd* pParent /*=NULL*/)
	: CFieldPanel(CFloatPanel::IDD,fname, pParent)
{
	//{{AFX_DATA_INIT(CFloatPanel)
	m_FloatField = 0.0f;
	//}}AFX_DATA_INIT
	MyData=dpt;
	m_FloatField=*MyData;
}


void CFloatPanel::DoDataExchange(CDataExchange* pDX)
{
	CFieldPanel::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFloatPanel)
	DDX_Text(pDX, IDC_FLOATFIELD, m_FloatField);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFloatPanel, CFieldPanel)
	//{{AFX_MSG_MAP(CFloatPanel)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFloatPanel message handlers

void CFloatPanel::OnOK() 
{
	UpdateData(TRUE);	
	*MyData=m_FloatField;
}
