How do I get my program to open as a full screen? Any ideas?
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].
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
Sometimes when you exit from mode13, the console window is maximized. Well, not that this matters though...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
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; }
zen