This topic has not yet been rated - Rate this topic

CWnd::KillTimer

Kills the timer event identified by nIDEvent from the earlier call to SetTimer.

BOOL KillTimer(
   UINT_PTR nIDEvent 
);
nIDEvent

The value of the timer event passed to SetTimer.

Specifies the outcome of the function. The value is nonzero if the event was killed. It is 0 if the KillTimer member function could not find the specified timer event.

Pending WM_TIMER messages associated with the timer are not removed from the message queue.

See the example for CWnd::SetTimer.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ