Hi All,
How do I get a compiled program to startup in a maximumized window? Thanks. :)
GH
If it's console mode, you don't.
Really... Vista and Win7 no longer support full screen text mode windows.
If you are on XP or 2000 you can type ALT-Enter to max out the window.
But the big question is... Why would you want to?
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#pragma comment(lib, "user32.lib")
int main(int argc, char **argv)
{
ShowWindow(GetConsoleWindow(), SW_MAXIMIZE);
return 0;
}
Quote from: timovjl on August 17, 2011, 09:51:08 PM
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#pragma comment(lib, "user32.lib")
int main(int argc, char **argv)
{
ShowWindow(GetConsoleWindow(), SW_MAXIMIZE);
return 0;
}
On my XP box that opened a full screen window.
On the Win7 machine it just made it the usual width but the full height of the screen.
Thanks!
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#pragma comment(lib, "user32.lib")
int main(int argc, char **argv)
{
ShowWindow(GetConsoleWindow(), SW_MAXIMIZE);
return 0;
}
The reason I would want to do this is to do game textual programming. Starting at the bottom so to speak.
GH