Catching a control's messages
I am trying to store the text written to a RichEdit control. The richEdit control in question is in another application.
So far I have successfully obtained a pointer to this RichEdit controls CWnd object and I can obtain it's text at any one time using WM_GETTEXT.
HOWEVER, the RichEdit control's content is constantly being added to by it's parent application. What I would like to be able to do is to update my recording of it's text everytime it is updated.
The most simple solution that springs to my mind is to intercept its messages but I'm not sure that this is possible/ legal (its all above board believe me :) ).
Any Ideas would be much appreciated.