Files
firestorm/Gameleap/code/mw4/Code/MW4GameEd2/FloatPanel.cpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

46 lines
1.0 KiB
C++

// 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;
}