共用方式為


CWindow::SetTimer

Creates a timer event.

UINT SetTimer(
   UINT nIDEvent,
   UINT nElapse,
   void ( CALLBACK* lpfnTimer )(HWND, UINT, UINT, DWORD) = NULL 
) throw();

Remarks

See SetTimer in the Windows SDK.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::KillTimer

Other Resources

CWindow Members