Windows Message loop

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 38
Reputation: _Nestor is an unknown quantity at this point 
Solved Threads: 4
_Nestor _Nestor is offline Offline
Light Poster

Windows Message loop

 
0
  #1
May 7th, 2008
I have a question about how the message loop works in a windows application

  1. while ( GetMessage(&msg, NULL, 0, 0) ) {
  2. TranslateMessage(&msg);
  3. DispatchMessage(&msg);
  4. }

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
Last edited by _Nestor; May 7th, 2008 at 10:27 am.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 176
Reputation: dubeyprateek is an unknown quantity at this point 
Solved Threads: 22
dubeyprateek's Avatar
dubeyprateek dubeyprateek is offline Offline
Junior Poster

Re: Windows Message loop

 
0
  #2
May 7th, 2008
About Messages and Message Queues

This talks about everything. Please let us know if you have any question.
I know I am. Therefore I am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC