The GetLargestConsoleWindowSize function returns the size of the largest possible console window, based on the current font and the size of the display.
COORD GetLargestConsoleWindowSize(
HANDLE hConsoleOutput |
// handle of console screen buffer |
); |
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.
The function does not take into consideration the size of the screen buffer, which means that the window size returned may be larger than the size of the 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.
COORD, GetConsoleScreenBufferInfo, SetConsoleWindowInfo
file: /Techref/os/win/api/win32/func/src/f33_13.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/12/24 23:32,
18.218.123.194:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f33_13.htm"> GetLargestConsoleWindowSize</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.