SetCaretBlinkTime

  BOOL SetCaretBlinkTime(wMSeconds)    
  UINT wMSeconds; /* blink rate in milliseconds */

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 times wMSeconds milliseconds.

Parameters

wMSeconds

Specifies the new blink rate (in milliseconds).

Return Value

TRUE is returned for success, FALSE for failure.

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 keyboard focus or becomes inactive.

See Also

GetCaretBlinkTime