[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetTimer( hWnd, nIdTimer, nInterval, nTmprc )-> <nNewId>
------------------------------------------------------------------------------
PARAMETER:
<hWnd> is the handle that identifies the window that will be
associated with the timer
<nIdTimer> specifies a non-zero timer identifier
<nInterval> is the time-out value in milliseconds.
<ntmprc> The adress of a callback procedure that gets called at
time-out. By default, this is set to zero. You should use
the TTIMER Class instead.
RETURNS:
<nNewId> is a specific identifier for this new timer. An application
needs this value later kill the timer with the KillTimer() function
DESCRIPTION:
SetTimer() installs a system timer. A time-out value is specified, and
every time a time-out occurs, the system posts a WM_TIMER message to the
installing application's message queue or passes the message to the
application-defined TimerProc callback function.
Timers are a limited global resource; therefore, it is important that an
application check the value returned by the SetTimer function to verify
that a timer is available.
SOURCE:
SOURCE\WINAPI\TIMERS.C
See Also:
KillTimer
DEFINE TIMER
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson