网站首页  词典首页

请输入您要查询的函数:

 

术语 fillconsoleoutputattribute
释义 FillConsoleOutputAttribute
语法:
C++
BOOL WINAPI FillConsoleOutputAttribute(
__in HANDLE hConsoleOutput,
__in WORD wAttribute,
__in DWORD nLength,
__in COORD dwWriteCoord,
__out LPDWORD lpNumberOfAttrsWritten
);
FillConsoleOutputAttribute功能
字符属性设置为指定的字符细胞数目,开始在指定的坐标在屏幕缓冲区。
参数
hConsoleOutput [in]
句柄到控制台屏幕缓冲区。句柄必须有GENERIC_WRITE访问权限。有关更多信息,参见控制台缓冲区安全和访问权限。
wAttribute [in]
的属性时使用写入控制台屏幕缓冲区。有关更多信息,请参见字符属性。
nLength [in]
的性格细胞的数量设置为指定的颜色属性。
dwWriteCoord [in]
一个坐标结构 指定字符坐标设置第一个单元格的属性。
lpNumberOfAttrsWritten [out]
一个变量,它接收的字符细胞的数量,实际上其属性设置指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果字符的单元格的属性要设置数量超出了指定的行在控制台屏幕缓冲区,下一行的单元格终了设置。如果细胞的数量将写入扩展,这些细胞被写入到控制台的屏幕缓冲区结束超出控制台屏幕缓冲区结束。
在写入位置的字符值不会改变。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
控制台函数
COORD
FillConsoleOutputCharacter
低级别控制台输出函数
SetConsoleTextAttribute
WriteConsoleOutputAttribute
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==FillConsoleOutputAttribute Function
Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
Syntax
C++
BOOL WINAPI FillConsoleOutputAttribute(
__in HANDLE hConsoleOutput,
__in WORD wAttribute,
__in DWORD nLength,
__in COORD dwWriteCoord,
__out LPDWORD lpNumberOfAttrsWritten
);
Parameters
hConsoleOutput [in]
A handle to the console screen buffer. The handle must have the GENERIC_WRITE access right. For more information, see Console Buffer Security and Access Rights .
wAttribute [in]
The attributes to use when writing to the console screen buffer. For more information, see Character Attributes .
nLength [in]
The number of character cells to be set to the specified color attributes.
dwWriteCoord [in]
A COORD structure that specifies the character coordinates of the first cell whose attributes are to be set.
lpNumberOfAttrsWritten [out]
A pointer to a variable that receives the number of character cells whose attributes were actually set.
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
If the number of character cells whose attributes are to be set extends beyond the end of the specified row in the console screen buffer, the cells of the next row are set. If the number of cells to write to extends beyond the end of the console screen buffer, the cells are written up to the end of the console screen buffer.
The character values at the positions written to are not changed.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Console Functions
COORD
FillConsoleOutputCharacter
Low-Level Console Output Functions
SetConsoleTextAttribute
WriteConsoleOutputAttribute
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682662(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:31:24