网站首页  词典首页

请输入您要查询的函数:

 

术语 setconsolecursorinfo
释义 SetConsoleCursorInfo
语法:
C++
BOOL WINAPI SetConsoleCursorInfo(
__in HANDLE hConsoleOutput,
__in const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo
);
SetConsoleCursorInfo功能
设置为指定的控制台屏幕缓冲区光标大小和知名度。
参数
hConsoleOutput [in]
句柄到控制台屏幕缓冲区。句柄必须有GENERIC_READ访问的权利。有关更多信息,参见控制台缓冲区安全和访问权限。
lpConsoleCursorInfo [in]
一个 CONSOLE_CURSOR_INFO结构,提供了控制台屏幕缓冲区的光标的新规格的指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
当屏幕缓冲区的光标是可见的,它的外观可以改变,从完全填充字符细胞表现了一个在单元格的底部Level线上升等。该CONSOLE_CURSOR_INFO结构的dwSize成员指定的字符的单元格是由游标填补百分比。如果这个成员是小于1或大于100,SetConsoleCursorInfo失败。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
控制台函数
控制台屏幕缓冲区
CONSOLE_CURSOR_INFO
GetConsoleCursorInfo
SetConsoleCursorPosition
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetConsoleCursorInfo Function
Sets the size and visibility of the cursor for the specified console screen buffer.
Syntax
C++
BOOL WINAPI SetConsoleCursorInfo(
__in HANDLE hConsoleOutput,
__in const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo
);
Parameters
hConsoleOutput [in]
A handle to the console screen buffer. The handle must have the GENERIC_READ access right. For more information, see Console Buffer Security and Access Rights .
lpConsoleCursorInfo [in]
A pointer to a CONSOLE_CURSOR_INFO structure that provides the new specifications for the console screen buffer's cursor.
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
When a screen buffer's cursor is visible, its appearance can vary, ranging from completely filling a character cell to showing up as a horizontal line at the bottom of the cell. The dwSize member of the CONSOLE_CURSOR_INFO structure specifies the percentage of a character cell that is filled by the cursor. If this member is less than 1 or greater than 100, SetConsoleCursorInfo fails.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Console Functions
Console Screen Buffers
CONSOLE_CURSOR_INFO
GetConsoleCursorInfo
SetConsoleCursorPosition
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686019(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 13:21:57