Home > Software engineering >  MFC dialog box, how to make a countdown
MFC dialog box, how to make a countdown

Time:09-26

Need to input time

CodePudding user response:

Use a dialog window
Set up a text box for entering target time
Set three text box is used to display the current to the target time of days, hours, minutes (E1, E2, E3)
Create a timer, interval of 100 ms
Timer function, the target time minus the current time interval T, converting T day,, points, and the calculated value to fill in to the E1, E2 and E3

CodePudding user response:

Based on the input access time, and then start the timer, the SetTimer

CodePudding user response:

SetTimer set a timer, executed per second, and then reduce one seconds at a time. Formatting output again.
To the input of the day,, points, second into second preserved, just in the timer 1 per second.

CodePudding user response:

Timer, 1 s to reduce again

CodePudding user response:

Are there any specific process

CodePudding user response:

The use of reference CTime function,,

According to the data, when a vehicle to the computer and use a timer to display,,

CodePudding user response:

Baidu search relevant keywords,
  • Related