Use the SetTimer, TimerProc and KillTimer functions of Windows API
UINT SetTimer( HWND hWnd, // handle of window for timer=
messages
UINT nIDEvent, // timer identifier
UINT uElapse, // time-out value
TIMERPROC lpTimerFunc // address of timer procedure);
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);
BOOL KillTimer( HWND hWnd, // handle of window that installed timer
UINT uIDEvent // timer identifier);
*********** REPLY SEPARATOR ***********
On 16/08/01 at 8:38 Christian Wallukat wrote:
>Hi List,
>
>how can i create a timer in an application ???
>
>I must get every second an event from the timer...
>
>How to use ???
s
|