网站首页  词典首页

请输入您要查询的函数:

 

术语 showcaret
释义 ShowCaret
语法:
BOOL ShowCaret( HWND hWnd
);
ShowCaret功能
该ShowCaret功能使插入在屏幕上可见在插入的当前位置。当插入变得可见,它开始自动闪烁。
参数
hWnd
[in]的窗口句柄拥有插入符。 If this parameter is NULL, ShowCaret searches the current task for the window that owns the caret.
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
ShowCaret显示插入仅当指定的窗口拥有插入,插入符号有一个形成,插入没有隐藏在连续两个或更多的时间。如果一个或更多的这些条件得不到满足,ShowCaret不执行任何操作并返回FALSE。
隐藏是累积的。如果您的应用程序调用HideCaret连续5次,但也必须调用ShowCaret插入前5次重新出现。
该系统提供每个队列插入。窗口应建立一个插入只有当它具有键盘焦点或处于活动状态。窗口前应销毁失去键盘焦点变为非活动状态或插入符。
有关示例,请参阅创建和显示光标。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
插入号概况,CreateCaret,DestroyCaret,GetCaretPos,HideCaret,SetCaretPos
==英文原文==ShowCaret Function
The ShowCaret function makes the caret visible on the screen at the caret's current position. When the caret becomes visible, it begins flashing automatically.
Syntax
BOOL ShowCaret( HWND hWnd
);
Parameters
hWnd
[in] Handle to the window that owns the caret. If this parameter is NULL, ShowCaret searches the current task for the window that owns the caret.
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
ShowCaret shows the caret only if the specified window owns the caret, the caret has a shape, and the caret has not been hidden two or more times in a row. If one or more of these conditions is not met, ShowCaret does nothing and returns FALSE.
Hiding is cumulative. If your application calls HideCaret five times in a row, it must also call ShowCaret five times before the caret reappears.
The system provides one caret per queue. A window should create a caret only when it has the keyboard focus or is active. The window should destroy the caret before losing the keyboard focus or becoming inactive.
For an example, see Creating and Displaying a Caret .
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 , CreateCaret , DestroyCaret , GetCaretPos , HideCaret , SetCaretPos
==原始网址==http://msdn.microsoft.com/en-us/library/ms648406(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:32:21