Click to See Complete Forum and Search --> : Send WM_PAINT to another application


a_fischetti
May 6th, 1999, 06:15 AM
Can my program send a message to another program?

Thanks in advance.

_______

Marqy
May 6th, 1999, 06:24 AM
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