Click to See Complete Forum and Search --> : Pausing a process


ftctran
November 19th, 2003, 01:15 PM
I created a dialog using MFC wizard. A "Play" button on a dialog generate random numbers and display on the dialog. A "Pause/Resume" would stop generaing random numbers and resume if it's pressed again.

I can't make the Pause working. Nothing happens when I press the Pause button. Please help give me some simple codes to understand the logic.

Greatly appreciate your help.

filthy_mcnasty
November 19th, 2003, 01:21 PM
are you multithreading? that's what you should do if you're not. if it's generating random numbers really fast it may not respond to you clicking it unless you do it in another thread.