Files
firestorm/Gameleap/code/mw4/Code/MW4GameEd2/TextEditPanel.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

48 lines
1.0 KiB
C++

// TextEditPanel.cpp : implementation file
//
#include "stdafx.h"
#include "mw4gameed2.h"
#include "TextEditPanel.h"
/////////////////////////////////////////////////////////////////////////////
// CTextEditPanel dialog
CTextEditPanel::CTextEditPanel(CString *dpt,CString fname,CWnd* pParent /*=NULL*/)
: CFieldPanel(CTextEditPanel::IDD,fname, pParent)
{
//{{AFX_DATA_INIT(CTextEditPanel)
m_Text = _T("");
//}}AFX_DATA_INIT
MyData=dpt;
m_Text=*MyData;
}
void CTextEditPanel::DoDataExchange(CDataExchange* pDX)
{
CFieldPanel::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTextEditPanel)
DDX_Text(pDX, IDC_TEXTFIELD, m_Text);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTextEditPanel, CFieldPanel)
//{{AFX_MSG_MAP(CTextEditPanel)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTextEditPanel message handlers
void CTextEditPanel::OnOK()
{
UpdateData(TRUE);
*MyData=m_Text;
}