www.pudn.com > autoricheditctrl_demo.zip > GetFontSizeDlg.cpp
// GetFontSizeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "RichEd.h"
#include "GetFontSizeDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGetFontSizeDlg dialog
CGetFontSizeDlg::CGetFontSizeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CGetFontSizeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGetFontSizeDlg)
m_nFontSize = 10;
//}}AFX_DATA_INIT
}
void CGetFontSizeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGetFontSizeDlg)
DDX_Text(pDX, IDC_EDIT, m_nFontSize);
DDV_MinMaxInt(pDX, m_nFontSize, 8, 72);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGetFontSizeDlg, CDialog)
//{{AFX_MSG_MAP(CGetFontSizeDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGetFontSizeDlg message handlers