描述:
谢谢
解决方案1:
SDK函数原型
UINT_PTR SetTimer(
HWND hWnd, // handle to window
UINT_PTR nIDEvent, // timer identifier
UINT uElapse, // time-out value
TIMERPROC lpTimerFunc // timer procedure
);
VOID CALLBACK TimerProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_TIMER message
UINT_PTR idEvent, // timer identifier
DWORD dwTime // current system time
);
使用:SetTimer(NULL,1,1000,TimerProc);
VOID CALLBACK TimerProc(.. ,.., .., ..)
{
....
}
MSDN:
Building ActiveX Controls for Microsoft Windows CE Using the Active Template Library
Shyam Pather
Microsoft Corporation
September 1999