"Full screen"

Hi, I need switch in console application on maximize window or full screen. Can you help me with this win32 code?
#include <Window.h>
and then put this at the top of your main or something -

SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE), CONSOLE_FULLSCREEN_MODE, 0);

http://www.cplusplus.com/forum/beginner/5314/
Last edited on
TarikNeaj is right, but I believe that this function does not change the console's width beyond the standard 80 characters. For that you want to call "SetConsoleScreenBufferSize()" found here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms686044(v=vs.85).aspx
Thanks
Topic archived. No new replies allowed.