1

Topic: CRichEditCtrl + EN_CHANGE

Already many times here it was written concerning interception EN_CHANGE, but to me to intercept correctly it is not possible. I have CRichEditView in it I install SetEventMask (.... |EN_MSGFILTER|EN_CHANGE) In CRichEditView I intercept ON_NOTIFY_REFLECT (EN_MSGFILTER, OnMsgFilter) But I  richedit is in a dialog box and I want to intercept in it message EN_CHANGE. Looked MS Spy - no messages reach dialogue from  to dialogue.

2

Re: CRichEditCtrl + EN_CHANGE

I specify that  on a basis document/view and is on a dialog box. In View messages reach, and to dialogue - are not present. I see that in dialogue I can intercept through PreTranslateMessage some messages, but I can not catch EN_CHANGE or . And it is necessary to define manually that there is a typing and further somehow to analyze that the data in richedit changed. Somehow so ((

3

Re: CRichEditCtrl + EN_CHANGE

Hello, Vlads, you wrote: V> I Specify that  on a basis document/view and is on a dialog box. In View messages reach, and to dialogue - are not present. V> I See that in dialogue I can intercept through PreTranslateMessage some messages, but I can not catch EN_CHANGE or . And it is necessary to define manually that there is a typing and further somehow to analyze that the data in richedit changed. V> Somehow so ((MFC so it is arranged, they intercept messages and then detain it in output agents, since the uppermost. The data in  still can be checked on  EN_UPDATE, but it like when  and left with  if symbol-by-symbol catching, only EN_CHANGE is necessary. And with PreTranslateMessage - we as do it goes the first in a stack (even earlier than, WndProc) if the message there did not disassemble, it leaves in MFC-shnyj the container.

4

Re: CRichEditCtrl + EN_CHANGE

Hello, Vlads, you wrote: V> Already many times here it was written concerning interception EN_CHANGE, but to me to intercept correctly it is not possible. V> I have CRichEditView in it I install V> V> SetEventMask (.... |EN_MSGFILTER|EN_CHANGE) V> V> In CRichEditView I intercept V> V> ON_NOTIFY_REFLECT (EN_MSGFILTER, OnMsgFilter) V> V> But I  richedit is in a dialog box and I want to intercept in it message EN_CHANGE. Looked MS Spy - no messages reach dialogue from  to dialogue. 1) we do not forget to put mask ENM_CHANGE 2) As catch EN_CHANGE? How much I remember, this code  comes in WM_COMMAND, and at all WM_NOTIFY. I.e. in the same MFC it is caught by macro ON_CONTROL_REFLECT (EN_CHANGE, OnChange), and accordingly function will be a type ______::OnChange () At least it was true for CRichEditView + the successor. About dialogue I precisely do not remember, it is necessary to be played. To dig towards output agent WM_COMMAND, there in HIWORD (WPARAM) the code  will lie.