How to simulate DoEvents() in Visual C++?
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
Hi, How to simulate DoEvents() function of Visual Basic in Visual C++? Please help if you know.
-
Hi, How to simulate DoEvents() function of Visual Basic in Visual C++? Please help if you know.
-
Something might work
void DoEvents() { MSG dispatch; while (::PeekMessage( &dispatch, NULL, 0, 0, PM_NOREMOVE)) { if (!AfxGetThread()->PumpMessage()); } }
I got it, thanks a lot!
-
Hi, How to simulate DoEvents() function of Visual Basic in Visual C++? Please help if you know.