Click to See Complete Forum and Search --> : Thread and Message Loop again


TOMNKZ
March 18th, 2005, 03:07 AM
Hi,everyone.
I read forums and msdn but still don't understand this question:
In MSDN says that all thread have message loop if it owns at least one window. So Where i can find this message loop how can i run it? Or i have to create message loop my self like : while(GetMessage(...)){}?

kuphryn
March 18th, 2005, 09:51 AM
In theory, a worker thread does not have a message queue. In practice, PeekMessage() will create a message queue for a thread.

Kuphryn

TOMNKZ
March 20th, 2005, 11:44 PM
Sorry,in my question i mean another. I want to ask

1)how to run thread message loop?
2)how it look like?
3)what it do with thread and window messages?
4)what relation between thread message loop and windows(windows which in this loop) message loop?

kuphryn
March 21st, 2005, 09:26 AM
Check out MSDN.

http://msdn.microsoft.com/library/default.asp

Check out my website for software development links.

http://www.dslextreme.com/users/kuphryn/links.html

Kuphryn