| | |
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 arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





