August 9th, 1999, 08:50 PM
Hello there,
Is there any fnction in Visual C++/MFC, that function is similar
to DoEvents in Visual Basic?
I have a very very long while loop like this
long lStart = 0;
long lEnd = very very large number
while (lStart < lEnd)
{
Sleep(0);
if (condition1)
Invalidate() to update windows;
do other processing;
lStart += lStep;
}
but during the loop, the Invalidate() function can not be processed.
Of course, I can use SetTimer/OnTimer to handle the loop, but that is
too slow.
Any idea is approciated! Pls email me your suggestion <wangch@necsin.nec.com.sg>
Thks,
Changhe Wang
Is there any fnction in Visual C++/MFC, that function is similar
to DoEvents in Visual Basic?
I have a very very long while loop like this
long lStart = 0;
long lEnd = very very large number
while (lStart < lEnd)
{
Sleep(0);
if (condition1)
Invalidate() to update windows;
do other processing;
lStart += lStep;
}
but during the loop, the Invalidate() function can not be processed.
Of course, I can use SetTimer/OnTimer to handle the loop, but that is
too slow.
Any idea is approciated! Pls email me your suggestion <wangch@necsin.nec.com.sg>
Thks,
Changhe Wang