[ros-kernel] Re: [ros-cvs] CVS Update: reactos (CursorBlinkRate)
Skywing
skywing at valhallalegends.com
Sat Nov 22 12:54:42 CET 2003
I think the control panel applet might use that function for its
preview-selected-blink-rate area.
-----Original Message-----
From: ros-kernel-bounces at reactos.com [mailto:ros-kernel-bounces at reactos.com]
On Behalf Of Richard Campbell
Sent: Saturday, November 22, 2003 4:27 AM
To: ReactOS Kernel List
Subject: Re: [ros-kernel] Re: [ros-cvs] CVS Update: reactos
(CursorBlinkRate)
SetCaretBlinkTime Function
The SetCaretBlinkTime function sets the caret blink time to the specified
number of milliseconds. The blink time is the elapsed time, in milliseconds,
required to invert the caret's pixels.
Syntax
BOOL SetCaretBlinkTime(
UINT uMSeconds
);
Parameters
uMSeconds
[in] Specifies the new blink time, in milliseconds.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The user can set the blink time using the Control Panel. Applications should
respect the setting that the user has chosen. The SetCaretBlinkTime function
should only be used by application that allow the user to set the blink
time, such as a Control Panel applet. (wouldn't this suggest that the
control panel applet uses this call? this is what i based my changes off
from, msdn.)
If you change the blink time, subsequently activated applications will use
the modified blink time, even if you restore the previous blink time when
you lose the keyboard focus or become inactive. This is due to the
multithreaded environment, where deactivation of your application is not
synchronized with the activation of another application. This feature allows
the system to activate another application even if the current application
is hung.
Function Information
Header
Declared in Winuser.h, include Windows.h
Import library
User32.lib
Minimum operating systems
Windows 95, Windows NT 3.1
See Also
Carets Overview, GetCaretBlinkTime
Thomas Weidenmueller wrote:
Richard Campbell wrote:
CVSROOT: /CVS/ReactOS
Module name: reactos
Repository: reactos/subsys/win32k/ntuser/
Changes by: rcampbell at mok.osexperts.com.(none) 03/11/21 17:49:39
Modified files:
reactos/subsys/win32k/ntuser/: caret.c
Log message:
CursorBlinkRate is now loaded via the registry.
_______________________________________________
Ros-cvs mailing list
Ros-cvs at reactos.com
http://reactos.geldorp.nl:8080/mailman/listinfo/ros-cvs
Windows doesn't change the value in the registry if you call
SetCaretBlinkTime() and it also doesn't query the registry if you call
GetCaretBlinkTime(). The value is loaded after login (i guess through
winlogon.exe) from the registry and it is only saved to the registry if you
change it with the control panel.
Regards
Thomas
_______________________________________________
Ros-kernel mailing list
Ros-kernel at reactos.com
http://reactos.geldorp.nl:8080/mailman/listinfo/ros-kernel
More information about the Ros-kernel
mailing list