Posting message to thread
-
Hi All, Can any one tell me how to post a message from worker thread to UI thread and vice-versa. Thanks in Advance:rose:
kuttiam wrote:
from worker thread to UI thread
You can only post messages to UI threads. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Hi All, Can any one tell me how to post a message from worker thread to UI thread and vice-versa. Thanks in Advance:rose:
-
Hi All, Can any one tell me how to post a message from worker thread to UI thread and vice-versa. Thanks in Advance:rose:
kuttiam wrote:
Can any one tell me how to post a message from worker thread to UI thread and vice-versa.
If you have the thread id then use
PostThreadMessage
. You should have a message loop running in the thread proc.Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
Hi All, Can any one tell me how to post a message from worker thread to UI thread and vice-versa. Thanks in Advance:rose:
kuttiam wrote:
Can any one tell me how to post a message...
Other than
PostMessage()
?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne