Catching a control's messages

This is a discussion on Catching a control's messages within the Windows Programming forums, part of the Platform Specific Boards category; Hi there, I am trying to store the text written to a RichEdit control. The richEdit control in question is ...

  1. #1
    Anal comment spacer DominicTrix's Avatar
    Join Date
    Apr 2002
    Posts
    120

    Catching a control's messages

    Hi there,

    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.

    Regards

    DT
    "The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns

  2. #2
    Anal comment spacer DominicTrix's Avatar
    Join Date
    Apr 2002
    Posts
    120
    After much blood and tears I figured it out. I just setup a global hook to catch the appropriate messages for that window - obvious really
    "The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Spy++ view messages posted/sent to a control, or from it?
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 06-25-2007, 12:07 AM
  2. Sending windows messages
    By Ideswa in forum Windows Programming
    Replies: 2
    Last Post: 03-02-2006, 01:27 PM
  3. Edit Controls - Colors - Messages
    By G'n'R in forum Windows Programming
    Replies: 3
    Last Post: 09-28-2003, 06:21 AM
  4. I need help disabling Keyboard and Mouse input on Edit controls
    By Templario in forum Windows Programming
    Replies: 4
    Last Post: 01-07-2003, 12:59 AM
  5. Edit controls not sending messages to parent window
    By EMiller in forum Windows Programming
    Replies: 5
    Last Post: 11-13-2001, 11:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21