tTime=SetTimer(hWnd,NULL,5000,NULL);
In win32, how can i explicitl kill the above timer? even though i used the KillTimer(hWnd,tTime)
function, after 5 seconds i also got the WM_TIMER message.....
Printable View
tTime=SetTimer(hWnd,NULL,5000,NULL);
In win32, how can i explicitl kill the above timer? even though i used the KillTimer(hWnd,tTime)
function, after 5 seconds i also got the WM_TIMER message.....
Try using an id like...
PHP Code:
UINT tId = 1;
SetTimer(hWnd,tId,5000,NULL);
KillTimer(hWnd, tId);
Make sure the return of SetTimer does not go out of scope...if its in a Windows Procedure make it static....otherwise declare it globally