The WM_TIMER message is posted to the installing thread’s message queue when a timer expires. You can process the message by providing a WM_TIMER case in the window procedure. Otherwise, the default window procedure will call the TimerProc callback function specified in the call to the SetTimer function used to install the timer.
WM_TIMER wTimerID = wParam; // timer identifier tmprc = (TIMERPROC *) lParam; // address of timer callback
An application should return zero if it processes this message.
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.
GetMessage, PeekMessage, SetTimer, TimerProc
file: /Techref/os/win/api/win32/mess/src/msg28_15.htm, 2KB, , updated: 2000/4/7 11:20, local time: 2024/11/24 18:10,
18.116.14.48:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/api/win32/mess/src/msg28_15.htm"> WM_TIMER</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.