[Overview][Types][Procedures and functions][Variables][Index] |
Creates or resets an timer for the given time interval.
Source position: winapih.inc line 353
function SetTimer( |
Wnd: HWND; |
nIDEvent: UINT_PTR; |
uElapse: UINT; |
lpTimerFunc: TTimerProc |
):UINT_PTR; |
Wnd |
|
The window associated with the timer. |
nIDEvent |
|
The ID of the timer, ignored when Wnd is zero. |
uElapse |
|
The time interval to wait. |
lpTimerFunc |
|
The callback procedure, can be Nil. |
The timer ID, or zero on failure.
Every timer has a unique ID, which is reported in the timer message and can be used to reset or kill the timer.
When the time has elapsed, the callback procedure is invoked. If no procedure is given, a WM_TIMER message is sent to the window. If also no window is given, the function fails.
When the timer already exists, it is reset to the new interval.
|
Removes an timer. |
|
|
Version 3.2 | Generated 2024-02-25 | Home |