Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier to use SetConsoleScreenBufferInfoEx #56

Open
ifknot opened this issue Dec 7, 2020 · 0 comments
Open

Easier to use SetConsoleScreenBufferInfoEx #56

ifknot opened this issue Dec 7, 2020 · 0 comments

Comments

@ifknot
Copy link

ifknot commented Dec 7, 2020

Big Fan! But...
In ConcstructConsole(...) you jump through a lot of unnecessary hoops (as per your 2017 update notes).
It is much easier to:

  • use GetConsoleScreenBufferInfoEx
  • modify the resulting CONSOLE_SCREEN_BUFFER_INFOEX dwSize, dwMaximumWindowSize and, srWindow
  • use SetConsoleScreenBufferInfoEx

Bingo!

No worrying about the order of things and shrinking to zero size etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant