术语 | setconsolescreenbuffersize |
释义 | SetConsoleScreenBufferSize 语法: C++ BOOL WINAPI SetConsoleScreenBufferSize( __in HANDLE hConsoleOutput, __in COORD dwSize ); SetConsoleScreenBufferSize功能 更改指定的控制台屏幕缓冲区大小。 参数 hConsoleOutput [in] 句柄到控制台屏幕缓冲区。句柄必须有GENERIC_READ访问的权利。有关更多信息,参见控制台缓冲区安全和访问权限。 dwSize [in] 一个坐标结构 ,指定字符的控制台行和列屏幕缓冲区,新的大小。指定的宽度和高度不能低于宽度和控制台屏幕缓冲区的窗口的高度。指定的尺寸也不能少于该系统允许的最小尺寸。此最低取决于目前的控制台(由用户选定)和SM_CXMIN和SM_CYMIN价值观GetSystemMetrics函数返回的字体大小。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWincon.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 控制台函数 控制台输入缓冲区 COORD GetConsoleScreenBufferInfo SetConsoleWindowInfo 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==SetConsoleScreenBufferSize Function Changes the size of the specified console screen buffer. Syntax C++ BOOL WINAPI SetConsoleScreenBufferSize( __in HANDLE hConsoleOutput, __in COORD dwSize ); 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 . dwSize [in] A COORD structure that specifies the new size of the console screen buffer, in character rows and columns. The specified width and height cannot be less than the width and height of the console screen buffer's window. The specified dimensions also cannot be less than the minimum size allowed by the system. This minimum depends on the current font size for the console (selected by the user) and the SM_CXMIN and SM_CYMIN values returned by the GetSystemMetrics function. 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 . 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 Input Buffer COORD GetConsoleScreenBufferInfo SetConsoleWindowInfo Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms686044(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。