Timer not running, where to initialise
-
Declaration : I am a beginner. (like C, always declare first ;-) ) Alright, straight to the point. I created a new MFC project, dialog base. I have a main dialog with a button, which will call the second dialog with a timer (clock). Normally when I have single dialog, I start the timer by initializing it in OnInitDialog(). Now I have the time in second dialog, where should i initialize it? In which function? Or what should I do? Any opinion is extremely welcome. Thanks.
-
Declaration : I am a beginner. (like C, always declare first ;-) ) Alright, straight to the point. I created a new MFC project, dialog base. I have a main dialog with a button, which will call the second dialog with a timer (clock). Normally when I have single dialog, I start the timer by initializing it in OnInitDialog(). Now I have the time in second dialog, where should i initialize it? In which function? Or what should I do? Any opinion is extremely welcome. Thanks.
-
You want a timer to initialise when the button is pushed to wait for the dialog, or when the dialog comes up to do something else ? If the former, start the timer when the button is pushed, if the latter, in OnInitDialog of dialog 2.
I would like the timer to start when the button on the first dialog is pushed. So when the second dialog pop up it has a running clock.....