Message loop in Microsoft Windows - Wikipedia, the free encyclopedia
Microsoft Windows programs are event-based. They act upon messages that the operating system posts to the main thread of the application. These messages are received from the message queue by the application by repeatedly calling the GetMessage (or PeekMe...