Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct SMALL_RECT {
- SHORT Left;
- SHORT Top;
- SHORT Right;
- SHORT Bottom;
- };
- void adjustWindowSize(){
- struct SMALL_RECT test;
- HANDLE hStdout;
- COORD coord;
- BOOL ok;
- hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
- coord.X = 100;
- coord.Y = 50;
- ok = SetConsoleScreenBufferSize(hStdout, coord);
- test.Left = 0;
- test.Top = 0;
- test.Right = coord.X-1;
- test.Bottom = coord.Y-1;
- SetConsoleWindowInfo(hStdout, ok, &test);
- } //sets console to full screen by default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement