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

    Recieving other windows' messages...

    I have gotten a pointer to a window through CWnd::FindWindow(). How can I receive messages that are sent to that window if I have a pointer to it?

    Mike Dorsey

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Recieving other windows' messages...

    Check out topics dealing with "window subclassing". This is exactly what you need to do to accomplish your goal.

    In a nutshell, you are replacing the new window's procedure with your own window procedure. You track the messages within your own procedure, and when done, call the original window procedure that you replaced.

    Regards,

    Paul McKenzie


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