CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    3

    Intercepting WM_SETTEXT Messages from other apps


    Trying to intercept a particular WM_SETTEXT message from another running application that has multiple windows.

    Is there any example code, or does anyone have any suggestions?

    Have been looking at OnMessage(WM_SETTEXT, OnSetText) and SetWindowsHookEx()

    But the question comes up on how to pick that particular window and instance.

    Using Spy++ I can see the Class of the window I want, but the object in that window has two classes of the same name, one with the message I need, the other without.

    Sorry - newbie here



  2. #2
    Guest

    Re: Intercepting WM_SETTEXT Messages from other apps

    To do what you are asking *REQUIRES* using hooks.....this will allow you to know when the SETTEXT message is being sent so you can (I assume) grab the text thats being set and perhaps put it somewhere else or change it....




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured