网站首页  词典首页

请输入您要查询的函数:

 

术语 setconsoleactivescreenbuffer
释义 SetConsoleActiveScreenBuffer
语法:
C++
BOOL WINAPI SetConsoleActiveScreenBuffer(
__in HANDLE hConsoleOutput
);
SetConsoleActiveScreenBuffer功能
设置指定的屏幕缓冲区是当前显示的控制台屏幕缓冲区。
参数
hConsoleOutput [in]
句柄到控制台屏幕缓冲区。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
一个控制台可以有多个屏幕缓冲区。 SetConsoleActiveScreenBuffer确定了所显示的。您可以写一个活跃的屏幕缓冲区,然后使用SetConsoleActiveScreenBuffer显示缓冲区的内容。
实例
有关示例,请参见读,写汉字和属性块。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
控制台函数
控制台屏幕缓冲区
CreateConsoleScreenBuffer
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetConsoleActiveScreenBuffer Function
Sets the specified screen buffer to be the currently displayed console screen buffer.
Syntax
C++
BOOL WINAPI SetConsoleActiveScreenBuffer(
__in HANDLE hConsoleOutput
);
Parameters
hConsoleOutput [in]
A handle to the console screen buffer.
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
A console can have multiple screen buffers. SetConsoleActiveScreenBuffer determines which one is displayed. You can write to an inactive screen buffer and then use SetConsoleActiveScreenBuffer to display the buffer's contents.
Examples
For an example, see Reading and Writing Blocks of Characters and Attributes .
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
CreateConsoleScreenBuffer
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686010(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:15:27