Igor Tandetnik a ?crit :
"Boki" <bokiteam@ms21.hinet.net> wrote in message
news:1150422967.816286.299240@i40g2000cwc.googlegroups.com
I have a for loop,
In VB version, I can do like this:
1. text1.refresh
2. DoEvents
but in VC win32, how to do that?
MSG msg;
while (PeekMessage(&msg, 0, 0, 0, 0, PM_REMOVE)) {
if (msg.message == WM_QUIT) {
PostQuitMessage(msg.wParam);
break;
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Anyway, it is generally considered a bad practice to work that way
(either with VB' DoEvents, either with an explicit message pump in
C++). You should Invalidate the window instead.
receive a WM_PAINT message. If the UI thread is off doing some lengthy