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