티스토리 뷰

ComComComCom/API

[message] WM_TIMER

몰라아 2017. 6. 9. 02:07

Posted to the installing thread's message queue when a timer expires.

The message is posted by the GetMessage or PeekMessage function.

 

c++

#define WM_TIMER                        0x0113

 

Parameters

wParam

The timer identifier.

lParam

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 fundtion 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 function post this message only when no other higher-priority messages are in the thread's message queue.

 

Requirements

Minimum supported client - Windows 2000 Professional [ desktop apps only ]

Minimum supported server - Windows 2000 Server [ desktop apps only ]

Header - Winuser.h ( include Windows.h )

 

출처

더 자세한 설명 및 사용법은 또 시간이날 때!

 

 

 

 

'ComComComCom > API' 카테고리의 다른 글

ESC로 종료하기  (0) 2017.06.18
Render환경 만들기  (0) 2017.06.17
DirectX  (0) 2017.06.11
WinAPI 틀  (0) 2017.06.08
WinAPI 무엇인가  (0) 2017.06.07
댓글