Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

WM_TIMER message

  • 2021-01-07
Feedback

In this article

Posted to the installing thread's message queue when a timer expires. The message is posted by theGetMessage orPeekMessage 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 theSetTimer 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 aWM_TIMER case in the window procedure. Otherwise,DispatchMessage will call theTimerProc callback function specified in the call to theSetTimer function used to install the timer.

TheWM_TIMER message is a low-priority message. TheGetMessage andPeekMessage functions post this message only when no other higher-priority messages are in the thread's message queue.

Requirements

RequirementValue
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

GetMessage

PeekMessage

SetTimer

TimerProc

Conceptual

Timers

 

 


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo