Click to See Complete Forum and Search --> : Rich Edit Detect Typing


geoffba
July 28th, 2003, 10:45 AM
I am trying to use the Richedit box as a display for a terminal application.

To do this I need to tell Richedit to send a message anytime text is typed. How would I go about doing this??

Yves M
July 29th, 2003, 10:30 AM
First of all, set the event mask of the Richedit to include ENM_CHANGE. You do this with by sending it the EM_SETEVENTMASK message. Then you should get an EN_CHANGE notification each time the text in the Richedit has changed.

However, this presupposes that you have a window procedure where you can catch this message. So, either you already have a frame window, or you need to create a message-only window.