原文:
The
TimerProc function is an application-defined callback function that processes
WM_TIMER messages. The
TIMERPROC type defines a pointer to this callback function.
TimerProc is a placeholder for the application-defined function name.
VOID CALLBACK TimerProc(
HWND
hwnd
,
// handle of window for timer messages
UINT
uMsg
,
// WM_TIMER message
UINT
idEvent
,
// timer identifier
DWORD
dwTime
// current system time
);
Parameters
hwnd
Handle to the window associated with the timer.
uMsg
Specifies the
WM_TIMER message.
idEvent
Specifies the timer's identifier.
dwTime
Specifies the number of milliseconds that have elapsed since the system was started. This is the value returned by the
GetTickCount function.
Return Values
This function does not return a value.
翻译:
TimerProc函数一个应用程序定义的处理WM_TIMER消息的回调函数。TIMERPROC类型定义了一个指向回调函数的指针,该函数是一个定义应用程序函数名的占位符。
VOID CALLBACK TimerProc(
HWND
hwnd
,
//
消息时间函数的句柄
UINT
uMsg
,
// WM_TIMER
消息
UINT
idEvent
,
//
定时器标识符
DWORD
dwTime
//
当前系统时间
);
参数:
hwnd:与定时器关联的窗口的句柄。
Umsg:指定WM_TIMER消息。
idEvent:指定定时器的标识符。
dwTime:指定从系统开始运行到现在所经过的毫秒数。该值由getTickCount函数返回。
返回值:无返回值。