Queue Mouse event till process completes.
-
Hello, I have an MFC dialog based application which does come sequence of tasks one after other. Each process takes few minutes to complete. I popup a dialog with cancel button on it with status of current task. If use selects cancel on the popup dialog. The process has to wait till the current task complete and then stop executing next task. Can someone tell me how to wait on process till it complete and then execute the mouse event. Thanks in advance.
-
Hello, I have an MFC dialog based application which does come sequence of tasks one after other. Each process takes few minutes to complete. I popup a dialog with cancel button on it with status of current task. If use selects cancel on the popup dialog. The process has to wait till the current task complete and then stop executing next task. Can someone tell me how to wait on process till it complete and then execute the mouse event. Thanks in advance.
You can do something like this: when the user presses Cancel, set a flag about it, then disable the button and optionally setup a label on you progress dialog that advice "Cancel in progress...", finally at the end of each task check the flag and if it is set stop processing the remaining ones.
-
Hello, I have an MFC dialog based application which does come sequence of tasks one after other. Each process takes few minutes to complete. I popup a dialog with cancel button on it with status of current task. If use selects cancel on the popup dialog. The process has to wait till the current task complete and then stop executing next task. Can someone tell me how to wait on process till it complete and then execute the mouse event. Thanks in advance.
-
The IProgressDialog[^] interface provides everything you need for such a situation.
It's time for a new signature.
Thanks for the suggestion.. Any pointers for IProgressDialog example, would be of great help. As i am getting errors during compilation. Else have to follow the other method. Thanks a lot for the help.. Regards..
-
Thanks for the suggestion.. Any pointers for IProgressDialog example, would be of great help. As i am getting errors during compilation. Else have to follow the other method. Thanks a lot for the help.. Regards..
Member 3834630 wrote:
Any pointers for IProgressDialog example,
I gave you the link in my previous message; it's a fairly simple one to implement.
Member 3834630 wrote:
i am getting errors during compilation.
Well, unless you tell us what the errors are we cannot help much.
It's time for a new signature.