Hello all, i have had recent trouble trying to get my win32 console window to fit my 1600 x 900 display making it full screen here is my code thanks in advance.
This won't work because the console's width is limited by default to 80 characters. You need to alter the size of the screen buffer to be able to resize the screen.
This code shows the function calls you need to make to resize the buffer.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
HANDLE hOutput=CreateFile("CONOUT$",
GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL,
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);
CONSOLE_SCREEN_BUFFER_INFOEX csbi;
GetConsoleScreenBufferInfoEx(hOutput,&csbi);
// Change elements of csbi here such as dwSize, dwMaximumWindowSize and srWindow which determine the size of the window
SetConsoleScreenBufferInfoEx(hOutput,&csbi);
(edit):
For next time, this question really belongs in the Windows Programming section of this forum - it's very windows-specific