Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
Timers
Timer Reference
Timer Notifications
 WM_TIMER message
WM_TIMER message

Applies to: desktop apps only

Posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.

#define WM_TIMER                        0x0113

Parameters

wParam [in]

The timer identifier.

lParam [in]

A pointer to an application-defined callback function that was passed to the SetTimer function when the timer was installed.

Return value

Type: LRESULT

An application should return zero if it processes this message.

Remarks

You can process the message by providing a WM_TIMER case in the window procedure. Otherwise, DispatchMessage will call the TimerProc callback function specified in the call to the SetTimer function used to install the timer.

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

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See also

Reference
GetMessage
PeekMessage
SetTimer
TimerProc
Conceptual
Timers

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Tags What's this?: timer (x) Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Value      Đonny   |   Edit   |   Show History
WM_TIMER = &;;H113
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker