![]() ![]() ![]() The calling convention for MyTimerProc must be based on the TimerProc callback function. (TIMERPROC) MyTimerProc) // timer callback case WM_TIMER:Īn application can also create a timer whose WM_TIMER messages are processed not by the main window procedure but by an application-defined callback function, as in the following code sample, which creates a timer and uses the callback function MyTimerProc to process the timer's WM_TIMER messages. To process the WM_TIMER messages generated by these timers, add a WM_TIMER case statement to the window procedure for the hwnd parameter. The first timer is set for every 10 seconds, the second for every five minutes. The following example uses the SetTimer function to create two timers. Using Timer Functions to Trap Mouse Input.This topic contains the following sections. This topic shows how to create and destroy timers, and how to use a timer to trap mouse input at specified intervals. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |