Is it possible to resize the console in a windows console application to fullscreen size?
It is possible to do that in the preferences of the windows, after the console was opened, but I cannot figure out how to do it programmatically.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get a handle to the console window using GetConsoleWindow.
Once you have that, you should be able to resize it using SetWindowPos
You may also need to resize the buffer for the console using SetConsoleScreenBufferSize prior to resizing the window.
ETA:
Others have mentioned using SetConsoleDisplayMode to display the console in full-screen (non-windowed) mode. I’m not sure if this is really what you wanted or not though. I haven’t seen any apps use non-windowed mode since the windows 98 days.