0

I have a question about how the message loop works in a windows application

while ( GetMessage(&msg, NULL, 0, 0) )  {
			TranslateMessage(&msg);
			DispatchMessage(&msg);
	}

Does the windows o/s maintain a message queue that the app retrieves a message from the front of then dispatch it bck to the o/s which calls the appropriate function or leaves it for default handling
or
Does the application maintain its own message queue and then then dispatch messages back to the o/s

I think its the first one but i just wanted to make sure i fully understand what is happening

3
Contributors
2
Replies
9
Views
9 Years
Discussion Span
Last Post by shinejos
0

Hi Check this article.
It explain how the windows messaging in win32 ..

shine joseph

Edited by pritaeas: Fixed link.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.