How can I implement a DoEvents function (like in Visual Basic)?
I need a function that let the system to process messages while I'm in a do-while, because otherwise user won't be able to press the cancel button, etc.
Which function does it?
Thanks is advance.
Jehoshaphath
Comments
: I need a function that let the system to process messages while I'm in a do-while, because otherwise user won't be able to press the cancel button, etc.
: Which function does it?
: Thanks is advance.
: Jehoshaphath
Try something like this:
MSG msg;
while (PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE))
DispatchMessage(&msg);