2.2.6.10.14 Dialog::SetTimer

Description

This function installs a system timer.

Syntax

int SetTimer( int nIDEvent, uint nElapse )

Parameters

nIDEvent
Specifies a nonzero timer identifier.
nElapse
Specifies the time-out value, in milliseconds.

Return

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.

Examples

EX1

#include <..\OriginLab\DialogEx.h>
#define IDC_EDIT1 1001

void Dialog_SetTimer(Dialog& MyDlg)
{
	MyDlg.SetTimer(1001,300);
}

Remark

See Also

Header to Include

Dialog.h