Jun 12, 2002 #1 dima2 Programmer Jan 20, 2002 85 LB hi is there a way to get a notification when the user pastes text to a rich edit control ? thx
Jun 12, 2002 #2 TGM IS-IT--Management Mar 14, 2001 141 BE Hi Suppose you add a CRichEditCtrl to a Dialogbox and you use the class wizard to name the instane m_RichEdit. In the override of OnInitDialog, add the following line: m_RichEdit.SetEventMask( ENM_CHANGE); Now add the handler for the message EN_CHANGE with the class wizard. That's it ... Don't forget to add the function AfxInitRichEdit() in the InitInstance function HTH Thierry EMail: Thierry.Marneffe@swing.be Upvote 0 Downvote
Hi Suppose you add a CRichEditCtrl to a Dialogbox and you use the class wizard to name the instane m_RichEdit. In the override of OnInitDialog, add the following line: m_RichEdit.SetEventMask( ENM_CHANGE); Now add the handler for the message EN_CHANGE with the class wizard. That's it ... Don't forget to add the function AfxInitRichEdit() in the InitInstance function HTH Thierry EMail: Thierry.Marneffe@swing.be
Jun 12, 2002 Thread starter #3 dima2 Programmer Jan 20, 2002 85 LB but this will also give me notification everytime a user types something. I only need to handle pasting Upvote 0 Downvote
but this will also give me notification everytime a user types something. I only need to handle pasting
Jun 14, 2002 #4 dijkstra Programmer Mar 5, 2004 8 PK another suggestion subclass the control and write handlers for WM_PASTE and EM_PASTESPECIAL Upvote 0 Downvote