| | |
Windows Message loop
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2008
Posts: 38
Reputation:
Solved Threads: 4
I have a question about how the message loop works in a windows application
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
C++ Syntax (Toggle Plain Text)
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
Last edited by _Nestor; May 7th, 2008 at 10:27 am.
About Messages and Message Queues
This talks about everything. Please let us know if you have any question.
This talks about everything. Please let us know if you have any question.
I know I am. Therefore I am.
![]() |
Similar Threads
- Windows GUI - problem with dialog box (C++)
- Windows Forms - Main Message Loop (C++)
- Message (C++)
- windows api help (C++)
- windows api help (C++)
- Windows gui (C)
- Using HID Input (C)
- Reading Keystates (C)
- GDI (C)
Other Threads in the C++ Forum
- Previous Thread: fUNTIONS
- Next Thread: help in phonebook
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





