I'd like to remove the scrollbars from my console (like in the edit
-command) because i want to make a qbasic-like program. I know that here is a thread but it does not work for me in windows 7 32bit. There is written that you only have to make the console screen buffer the same size as the console window.
This dont work:
HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO csbi;
GetConsoleScreenBufferInfo(hstdout, &csbi);
csbi.dwSize.X = csbi.srWindow.Right;
csbi.dwSize.Y = csbi.srWindow.Bottom;
SetConsoleScreenBufferSize(hstdout, csbi.dwSize);
Even if i set csbi.dwSize.X
and Y
to 10 or smaller, the scrollbars are there.