Advertisement
MARSHAL327

Untitled

Nov 24th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.     HANDLE hCon;
  2.  
  3.     // вытаскиваем ширину и высоту
  4.     hCon = GetStdHandle(-12);
  5.     CONSOLE_SCREEN_BUFFER_INFO consoleInfo;
  6.     if (GetConsoleScreenBufferInfo(hCon, &consoleInfo))
  7.     {
  8.         width = consoleInfo.srWindow.Right - consoleInfo.srWindow.Left + 1;
  9.         height = consoleInfo.srWindow.Bottom - consoleInfo.srWindow.Top + 1;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement