Article ID: 165744
Article Last Modified on 11/18/2003
class CSampleDlg : public CDialog
{
public:
CSampleDlg(CWnd* pParent = NULL);
// Dialog Data
//{{AFX_DATA(CSampleDlg)
enum { IDD = IDD_SAMPLE_DIALOG };
CString m_edit; // Added by ClassWizard for an edit control
//}}AFX_DATA
// Manually add member variables for the rich edit control
CRichEditCtrl m_richEditCtrl;
CString m_richedit;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSampleDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
// DDX/DDV support
//}}AFX_VIRTUAL
......
DECLARE_MESSAGE_MAP()
};
......
void CSampleDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSampleDlg)
DDX_Text(pDX, IDC_EDIT, m_edit);
DDV_MaxChars(pDX, m_edit, 10);
//}}AFX_DATA_MAP
// Manually add DDX_Control, DDX_Text and DDV_MaxChars for the
// rich edit control
DDX_Control(pDX, IDC_RICHEDIT1, m_richEditCtrl);
DDX_Text(pDX, IDC_RICHEDIT1, m_richedit);
DDV_MaxChars(pDX, m_richedit, 10);
}
Keywords: kbbug kbfix kbvc600fix kbcode KB165744