Article ID: 181664 - Last Review: December 8, 2003 - Revision: 3.0 PRB: Rich Edit Control Message Handlers Are Not CalledThis article was previously published under Q181664 On This PageSYMPTOMS
There 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.
CAUSE
The wrong message map entries are added.
RESOLUTION
Replace the message-map entries generated for EN_SETFOCUS and EN_KILLFOCUS
with
the following entries:
ON_EN_SETFOCUS(IDC_RICHEDIT1, OnSetfocusRichedit1)
Note: You need to alter IDC_RICHEDIT1 to match the ID of your control.
You will also need to change the prototypes for the message handlers
generated by the wizard to:
ON_EN_KILLFOCUS(IDC_RICHEDIT1, OnKillfocusRichedit1)
afx_msg void OnSetfocusRichedit1(); afx_msg void OnKillfocusRichedit1(); STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
| Article Translations
|
Back to the top
