IASForm::SetTimer

This method sets a timer.

Syntax

HRESULT SetTimer( IDispatch *pdispControl, UINT dMilliSecs, long *pTimerID );

Parameters

pdispControl
Pointer to the control the timer is associated with.
dMilliSecs
Specifies, in milliseconds, the timer setting.
pTimerID
Pointer to the long integer that contains the identifier of the timer.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

When the timer reaches 0, it fires a WM_TIMER message to the event sink. The control’s identifier is contained in the low-order word of the message’s wParam.

See Also

LOWORD