Is there any way I can get my app to open in full screen
Thanks
Printable View
Is there any way I can get my app to open in full screen
Thanks
What kind of app?
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);
Simulates the pressing of Alt and Enter, which will make a console window into a full screen console window.
Uses windows.h header.
Thanks
The console window flashes during full screen
Thanks
You can't expect a fullscreen toggle to be instantaneous. From http://www.adrianxw.dk/SoftwareSite/...Consoles6.html:
If you don't want to do it programmatically:Quote:
Another important thing to note is that changing to/from full screen is not instantaneous, the time taken to do so depends on your graphics card and screen, you'll need to experiment with that.
You can create a shortcut to your application, right click->properties on the shortcut, choose the options tab, and click Full Screen. Of course, this can be changed.
Or you can press ALT-ENTER manually and the console window switches to fullscreen.
The text flashes the size of the window remains in full screen mode. The same issue occures when I press alt + enter in the command prompt window. Could my version of Windows Xp Media Center Edition 2002 be corrupt?
Thanks
Umm . . . it's probably not your copy of Windows that's the problem. I'm not aware of any issues with XP Media Center regarding incompatible command prompts.
I don't quite get what you mean.Quote:
The text flashes the size of the window remains in full screen mode.
If you press ALT-ENTER with a command prompt selected, it will toggle fullscreen mode: if it's in a window, it will become fullscreen and vice versa.
If ALT-ENTER does nothing, it could be something wrong with your shortcut. On Windows 98 at least, you could choose to enable or disable ALT-ENTER and other keyboard shortcuts manually in a shortcut's properties dialog box. I imagine the same might happen in Windows XP if the command prompt was being run in compatibility mode. But this is very unlikely to be the problem.
Can you describe what happens when you press ALT-ENTER in detail, along with what you expected would happen?
My Vista Home Premium does not even support a full screen console window. I was disappointed. Still, in their defense, what would be the point?
Hmm, you're right.
I suppose they didn't want any more calls like this:
Anyway . . . why do you want your program to open in fullscreen anyway?Code:Customer: ... so then I ran the program, and my screen turned black!
IT: You mean . . . your monitor turned off?
Customer: Nooo... not exactly. There was some text on the screen, but everything else was gone -- the mouse, Google, everything.
IT: What was the text?
Customer: I don't know . . . something like "abort or ignore or retry".
IT: ...
if you really want a full screen application, try opengl. you can draw text to the screen, it wouldn't be too hard to set up.
or just use a normal gui application with a text box... (fltk, wxwidgets...)
the console window is steady in full screen mode but the text flashes really fast (the program works otherwise
Well, programs in fullscreen often do run somewhat faster. Unless you mean the text is flickering or something, in which case, try disabling the mouse if you can -- it might be an option in the Properties of a shortcut to your program.
The only thing that I can think of that would cause the text to flash really fast in a console is if you are running a function in an ifinite loop that redisplays the text over and over. To reduce flicker you can create an offscreen buffer that you write too and then call the win32 console function SetConsoleActiveScreenBuffer to display the buffer. Kind of a double buffering for a console. Well the other thing would be the refresh rate of your monitor. If the refresh rate is very low your screen will flicker.