On 2 May 2011 13:18, John Edmonds pocketcookies2@gmail.com wrote:
- /*Pull all currently available messages. We don't care about messages generated after this loop exits.*/
- while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
You should probably use flush_events() for that.