943,515 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4886
  • C++ RSS
May 7th, 2008
0

Windows Message loop

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

C++ Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 28
Solved Threads: 4
Light Poster
_Nestor is offline Offline
43 posts
since Apr 2008
May 7th, 2008
0

Re: Windows Message loop

About Messages and Message Queues

This talks about everything. Please let us know if you have any question.
Reputation Points: 39
Solved Threads: 24
Junior Poster
dubeyprateek is offline Offline
176 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: fUNTIONS
Next Thread in C++ Forum Timeline: help in phonebook





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC