PRB: Rich Edit Control Message Handlers Are Not CalledLast reviewed: March 19, 1998Article ID: Q181664 |
The information in this article applies to:
SYMPTOMSThere is a problem with the message-map entries that ClassWizard creates to handle the following Rich Edit control messages: EN_SETFOCUS, EN_KILLFOCUS. The message-map entry created by ClassWizard does not call the handler for these messages.
CAUSEThe wrong message map entries are added.
RESOLUTIONReplace the message-map entries generated for EN_SETFOCUS and EN_KILLFOCUS with the following entries:
ON_EN_SETFOCUS(IDC_RICHEDIT1, OnSetfocusRichedit1) ON_EN_KILLFOCUS(IDC_RICHEDIT1, OnKillfocusRichedit1)Note: You need to alter IDC_RICHEDIT1 to match the ID of your control.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor additional information, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q166132 TITLE : PRB: Dialog With RichEdit May Fail During Creation ARTICLE-ID: Q165744 TITLE : BUG: RichEditCtrl IDs Not Shown in Member Variables Tab |
Additional query words: CRichEditCtrl EN_SETFOCUS EN_KILLFOCUS RichEdit
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |