Archived

This topic is now archived and is closed to further replies.

A C++ function for DoEvents or ProcessMessages

This topic is 5898 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Sorry for this post guys... I have made another a few minutes ago, And I think, I discovered the problem spoke on that... I think I have to use, inside the ''While statement'', something like the ''DoEvents()'' function of Visual Basic, or ''Application.ProcessMessages'' of Delphi... Does anyone knows a function that does the same thing on C++?

Share on other sites
You can write one yourself, it''s three lines of code:

  MSG msg;while(PeekMessage(&msg,NULL,NULL,NULL,PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); }