timer count down
Managed C++/CLI
3
Posts
3
Posters
0
Views
1
Watching
-
i want to show count down of seconds, as the user enters the answer the countdown should have stoped....just like a quiz program, i want to do it in VC++6
Create a dialog(whatever) , use function SetTimer to set the timer. (like SetTimer( your_window,QUIZ_TIMER,1000,0); ) then handle WM_TIMER message . In mfc you can handle it by adding the ON_WM_TIMER macro in message map. then in OnTimer callback check for your timer id then do whatever you need to display
void MyDialog::OnTimer( UINT id )
{
if( id == QUIZ_TIMER)
{
// do whatever
}
}If u can Dream... U can do it
-
i want to show count down of seconds, as the user enters the answer the countdown should have stoped....just like a quiz program, i want to do it in VC++6