954,153 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Windows Message loop

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

_Nestor
Light Poster
47 posts since Apr 2008
Reputation Points: 28
Solved Threads: 4
 

About Messages and Message Queues

This talks about everything. Please let us know if you have any question.

dubeyprateek
Junior Poster
176 posts since Mar 2006
Reputation Points: 39
Solved Threads: 24
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You