To use a timer, the SetTimer function is used to set the timer, where the returned value is nIDEvent, which is used as the identifier of the timer.
For example, if you install 3 timers,
In the OnTimer function, compare whether nIDEvent is timer1, timer2, or timer3 and process it according to the type of timer.
© 2022 pinfo. All rights reserved.