Lars_V_J
March 4th, 2009, 05:09 AM
In my main thread, I have a normal Postmessage:
::PostMessage(WSHandlerHNDL, KCS_POLLRCV_POSTMSG, (WPARAM)lpBuf, (LPARAM)buffer);
Now, I want to do the same thing with PostThreadMessage, but it doesn't have a HWND param. How do I do that?
Also...where does the PostThreadMessage messages end up? I have considered to go to the mainframe class and add a ON_THREAD_MESSAGE
that passes the message on to the right HWND, but I don't know if that's the right approach or if it can be done easier...
Thanks in advance
::PostMessage(WSHandlerHNDL, KCS_POLLRCV_POSTMSG, (WPARAM)lpBuf, (LPARAM)buffer);
Now, I want to do the same thing with PostThreadMessage, but it doesn't have a HWND param. How do I do that?
Also...where does the PostThreadMessage messages end up? I have considered to go to the mainframe class and add a ON_THREAD_MESSAGE
that passes the message on to the right HWND, but I don't know if that's the right approach or if it can be done easier...
Thanks in advance