Поделиться через


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

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::SetTimer

KillTimer