| | |
Windows Message loop
![]() |
•
•
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 |
action api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count createcopyofanyfileinc delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input insert int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node noob output parameter pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets





