Just a simple question, is there any way to get messages for a window created in a different thread than my own?
I want to use PeekMessage on Notepad. I tried using FindWindow(NULL, "untitled - Notepad"), which found the window perfectly, but was unable to use GetMessage or PeekMessage(). I think thats because in the MSDN help under GetMessage, it has this:
I expect the same is also true for PeekMessage, because I had the same problem there.hWnd
[in] Handle to the window whose messages are to be retrieved. The window must belong to the calling thread. The NULL value has a special meaning[...]
Is it possible to check for messages at all from another thread?