术语 | getlargestconsolewindowsize |
释义 | GetLargestConsoleWindowSize 语法: C++ COORD WINAPI GetLargestConsoleWindowSize( __in HANDLE hConsoleOutput ); GetLargestConsoleWindowSize功能 检索最大可能的控制台窗口,根据当前字体和显示器的大小。 参数 hConsoleOutput [in] 句柄到控制台屏幕缓冲区。 返回值 如果函数成功,返回值是一个坐标结构,指定字符细胞行(X成员)和列(y成员在尽可能大的控制台窗口)的数量。否则,该结构的成员都是零。 为了获得更多错误信息,调用GetLastError。 备注 该函数不考虑在控制台的屏幕缓冲区,这意味着返回的窗口大小可能比在控制台屏幕缓冲区大小的大小。该GetConsoleScreenBufferInfo函数可用于确定在控制台窗口,鉴于当前的屏幕缓冲区大小,目前的字体和显示尺寸最大尺寸。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWincon.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 控制台函数 COORD GetConsoleScreenBufferInfo SetConsoleWindowInfo 窗口和屏幕缓冲区大小 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==GetLargestConsoleWindowSize Function Retrieves the size of the largest possible console window, based on the current font and the size of the display. Syntax C++ COORD WINAPI GetLargestConsoleWindowSize( __in HANDLE hConsoleOutput ); Parameters hConsoleOutput [in] A handle to the console screen buffer. Return Value If the function succeeds, the return value is a COORD structure that specifies the number of character cell rows (X member) and columns (Y member) in the largest possible console window. Otherwise, the members of the structure are zero. To get extended error information, call GetLastError . Remarks The function does not take into consideration the size of the console screen buffer, which means that the window size returned may be larger than the size of the console screen buffer. The GetConsoleScreenBufferInfo function can be used to determine the maximum size of the console window, given the current screen buffer size, the current font, and the display size. 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 GetConsoleScreenBufferInfo SetConsoleWindowInfo Window and Screen Buffer Size Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms683193(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。