www.pudn.com > subject_1_113294.rar > TextDlg.cpp, change:2002-05-25,size:1083b


// TextDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Paint.h" 
#include "TextDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CTextDlg dialog 
 
 
CTextDlg::CTextDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CTextDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CTextDlg) 
	m_Text = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void CTextDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CTextDlg) 
	DDX_Text(pDX, IDC_EDIT1, m_Text); 
	DDV_MaxChars(pDX, m_Text, 100); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CTextDlg, CDialog) 
	//{{AFX_MSG_MAP(CTextDlg) 
	ON_BN_CLICKED(IDC_FONT, OnFont) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CTextDlg message handlers 
 
void CTextDlg::OnFont()  
{ 
	// TODO: Add your control notification handler code here 
	CFontDialog dlg; 
	if(dlg.DoModal()!=IDOK) 
		return; 
}