术语 | setcaretblinktime |
释义 | SetCaretBlinkTime 语法: BOOL SetCaretBlinkTime( UINT uMSeconds ); SetCaretBlinkTime功能 该SetCaretBlinkTime函数设置插入闪烁的时间到指定的毫秒数。闪烁时间是所用的时间以毫秒为单位,须颠倒插入的像素。 参数 uMSeconds [in]指定新的闪烁时间,以毫秒为单位。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 用户可以设置闪烁一次使用控制面板。应用程序应尊重该用户选择设置。该SetCaretBlinkTime函数只应使用的应用程序,允许用户设置,如控制面板小程序闪烁的时间。 如果您改变了闪烁的时间,随后启动应用程序将使用修改后的眨眼的时间,即使您恢复以前的闪烁的时候您失去键盘焦点或不再活跃。这是由于多线程环境中,应用程序停止使用不符合另一个应用程序的启动同步。此功能允许系统启动另一个应用程序,即使当前的应用程序没有响应。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 UnicodeImplemented为Unicode版本。 参见 插入号概况,GetCaretBlinkTime ==英文原文==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. 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 not responding. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.1 UnicodeImplemented as Unicode version. See Also Carets Overview , GetCaretBlinkTime ==原始网址==http://msdn.microsoft.com/en-us/library/ms648404(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。