Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 23 / TextDialog
.cpp// TextDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Sketcher.h"
#include "TextDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTextDialog dialog
CTextDialog::CTextDialog(CWnd* pParent /*=NULL*/)
: CDialog(CTextDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CTextDialog)
m_Text = _T("");
//}}AFX_DATA_INIT
}
void CTextDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTextDialog)
DDX_Text(pDX, IDC_EDIT, m_Text);
DDV_MaxChars(pDX, m_Text, 255);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTextDialog, CDialog)
//{{AFX_MSG_MAP(CTextDialog)
ON_EN_CHANGE(IDC_EDIT, OnChangeEdit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTextDialog message handlers
void CTextDialog::OnChangeEdit()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
this->UpdateData();
}
const char* CTextDialog::getCharTextRepresentation()
{
return m_Text;
}
Соседние файлы в папке Лабораторная работа 23