Does anybody know how to set a console program to full screen mode?
Printable View
Does anybody know how to set a console program to full screen mode?
Think i can help you with that. Try the code below, that should do the trick.
Just call the function, in say like this:Code:void fullscreen() //another cool trick that I use to make it full screen or back to normal size
{
keybd_event(VK_MENU,0x38,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
}
Code:cout << "Full screen?: ";
cin >> somevariable;
if (the variable is yes)
{
fullscreen();
}
We keep that information on adrianxw's site. More specifically, it's right here on his site.
Wow, someone needs to quote their sources.;)
Thanks