How do I get my program to open as a full screen? Any ideas?
Printable View
How do I get my program to open as a full screen? Any ideas?
I guess you are programming in a windows environment and write console applications.
http://sunlightd.virtualave.net/Wind...soleFullScreen
You cannot do this and I wouldn't recommend it even if you could. If your user likes it full screen, s/he can make a link to your program and check the fullscreen box there. To force the user into fullscreen mode on startup without his approval is plain rude. This is windows. If I want it fullscreen, I'll press [Alt][Enter].
Sometimes when you exit from mode13, the console window is maximized. Well, not that this matters though... :)
If you want the console maximised, then the code below should do it, but it's not the same as Alt-Enter.
Code:#include <windows.h>
int main()
{
HANDLE hConsole;
COORD size;
HWND hWnd;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
size = GetLargestConsoleWindowSize(hConsole);
SetConsoleScreenBufferSize(hConsole,size);
SetConsoleTitle("test");
hWnd = FindWindow(NULL,"test");
ShowWindow(hWnd,SW_MAXIMIZE);
return 0;
}