SetCaretBlinkTime

Syntax

void SetCaretBlinkTime(wMSeconds)

This function sets the caret blink rate (elapsed time between caret flashes) to the number of milliseconds specified by the wMSeconds parameter. The caret flashes on or off each wMSeconds milliseconds. This means one complete flash (on-off-on) takes 2 ´ wMSeconds milliseconds.

Parameter Type/Description  

wMSeconds WORD Specifies the new blink rate (in milliseconds).  

Return Value

None.

Comments

The caret is a shared resource. A window should set the caret blink rate only if it owns the caret. It should restore the previous rate before it loses the input focus or becomes inactive.