DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Windows Message loop (http://www.daniweb.com/forums/thread122971.html)

_Nestor May 7th, 2008 10:26 am
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

dubeyprateek May 7th, 2008 10:39 am
Re: Windows Message loop
 
About Messages and Message Queues

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


All times are GMT -4. The time now is 1:03 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC