You could use the Windows SetTimer API call to start a timer like this: SetTimer(hwnd, 1, 100, NULL) for a timer interval of 0.1 second (100 milliseconds). See below for details.<br>
<br>
UINT SetTimer(hwnd, idTimer, uTimeout, tmprc)<br>
<br>
HWND hwnd; /* handle of window for timer messages */<br>
UINT idTimer; /* timer identifier */<br>
UINT uTimeout; /* time-out duration in millisecs*/<br>
TIMERPROC tmprc; /* instance address of timer procedure NULL if you want WM_TIMER messages */<br>
<br>
Then all your program has to do is repond to the WM_TIMER messages it recieves. When it is done with the timer, call KillTimer(hwnd, 1) to kill the above #1 timer.....<br>
I hope this helps...