Advertisement
MagicWinnie

Untitled

Jan 19th, 2022
645
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // removing scrollbar
  2. HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
  3. CONSOLE_SCREEN_BUFFER_INFO scrBufferInfo;
  4. GetConsoleScreenBufferInfo(hOut, &scrBufferInfo);
  5. short winHeight = scrBufferInfo.srWindow.Bottom - scrBufferInfo.srWindow.Top + 1;
  6. short scrBufferHeight = scrBufferInfo.dwSize.Y;        
  7. COORD newSize;
  8. newSize.X = scrBufferWidth;
  9. newSize.Y = winHeight;
  10. SetConsoleScreenBufferSize(hOut, newSize);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement