TimerProc Callback Function

Public Sub TimerProc (ByVal hwnd As Long, ByVal uMsg As Long, ByVal idEvent As Long, _
		ByVal dwTime As Long)
	' Place application-defined code here.
End Sub

Description & Usage

The TimerProc callback function executes whenever the time-out period of an active timer elapses. Because the callback function receives the index of the timer that called it, a single TimerProc function can be used to handle multiple timers simultaneously.

Return Value

TimerProc does not return a value.

Visual Basic-Specific Issues

Like all callback functions, TimerProc must be Public and be declared inside a module.

Parameters

hwnd
A handle to the window that owns the timer, if any.
uMsg
This always specifies the WM_TIMER message.
idEvent
The unique identifier of the timer that is calling the function.
dwTime
The number of milliseconds that have elapsed since Windows was last started. This is the same as the output from the GetTickCount function.

Constant Definitions

Const WM_TIMER = &H113

Used By

SetTimer

Back to the Callback Function list.
Back to the Reference section.


Last Modified: May 21, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/t/timerproc.html