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

    Send WM_PAINT to another application

    Can my program send a message to another program?

    Thanks in advance.

    _______

  2. #2
    Join Date
    May 1999
    Location
    UK
    Posts
    59

    Re: Send WM_PAINT to another application

    Here's a gross solution!! If you know the title bar text of the target window, call FindWindow() to get it's hWnd, you can then call PostMessage (or create a CWnd * then call class members like Invalidate(), which posts the message for you). Note this isn't very good code though - if the caption of the window changes your code will break...

    A better solution is to have your applications expose interfaces which you can use to post notification on.

    MJA

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