redoctober
Programmer
Hi,
I'm writing a little program which does the following:
When i press the button it goes in my Doc class and performs some tasks which sometimes may take a few minutes. What i want to achieve is to be able to report the status of execution in the window. Every once in a while i'm sending a message (throught Invalidate() procedure) to redraw the screen, but since my code is running none of the messages is being handled until my routine finishes. I'm looking for a way to force message handling system to kick in when i need it. I know Delphi has function which preempts execution of the code for few milliseconds to let some messages to got through and i hope MFC has something like that too.
Thanks in advance.
I'm writing a little program which does the following:
When i press the button it goes in my Doc class and performs some tasks which sometimes may take a few minutes. What i want to achieve is to be able to report the status of execution in the window. Every once in a while i'm sending a message (throught Invalidate() procedure) to redraw the screen, but since my code is running none of the messages is being handled until my routine finishes. I'm looking for a way to force message handling system to kick in when i need it. I know Delphi has function which preempts execution of the code for few milliseconds to let some messages to got through and i hope MFC has something like that too.
Thanks in advance.