BUG: RichEditCtrl IDs Not Shown in Member Variables TabLast reviewed: June 16, 1997Article ID: Q165744 |
The information in this article applies to:
SYMPTOMSThe Member Variables tab in the ClassWizard does not show the IDs for Rich Edit controls. This is not a problem in the Message Maps tab of ClassWizard.
RESOLUTIONTo work around this problem, you need to add the member variables for the Rich Edit control manually to the class definition in the dialog class and associate it with the control.
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() };-- sampledlg.cpp --
...... 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); } STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce BehaviorThe following steps can be used to reproduce the problem.
|
Keywords : kbtool vcbuglist500 kbfasttip
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |