|
-
August 9th, 1999, 08:50 PM
#1
DoEvents
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 <[email protected]>
Thks,
Changhe Wang
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|