Compartir a través de


WM_TIMER

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message is posted to the installing thread's message queue or sent to the appropriate TimerProc callback function after each interval specified in the SetTimer function used to install a timer.

Syntax

WM_TIMER wTimerID = wParam; 
    tmprc = (TIMERPROC *) lParam;

Parameters

  • wTimerID
    Specifies the timer identifier.
  • tmprc
    Pointer to an application-defined callback function that was passed to the SetTimer function when the timer was installed.

Return Value

An application should return zero if it processes this message.

Remarks

The WM_TIMER message is a low-priority message. The GetMessage and PeekMessage functions retrieve this message only when no other higher-priority messages are in the thread's message queue.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

DispatchMessage
SetTimer
TimerProc
GetMessage
PeekMessage