SetTimer
This function installs a system timer.
int SetTimer( int nIDEvent, uint nElapse )
The timer identifier of the new timer if the function is successful.
An application passes this value to the KillTimer member function to kill the timer.
Nonzero if successful; otherwise 0.
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_EDIT1 1001 void Dialog_SetTimer(Dialog& MyDlg) { MyDlg.SetTimer(1001,300); }
Dialog.h