hello all, im seeking a way to make a console pane maximized when the user runs the application for the first time , ( by saying maximized i mean , pressing Alt+Enter ), so
is there any way ? or bit of codes to do that ?
tanx in advance
hello all, im seeking a way to make a console pane maximized when the user runs the application for the first time , ( by saying maximized i mean , pressing Alt+Enter ), so
is there any way ? or bit of codes to do that ?
tanx in advance
Highlight Your Codes
The Boost C++ Libraries (online Reference)
Bill Bryson"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
I seem to recall some threads about this. For example:
Just search for "full screen console" or "maximize dos window" or similar terms, you'll come up with something.
As far as I remember, the options go like this:
- Don't do it. Seriously. If the user wants to maximize the window, they'll do it themselves.
- Trick the window into always going fullscreen. (For example, create a shortcut to your application, and change the settings so that it's in fullscreen by default.)
- Simulate ALT-ENTER to toggle fullscreen. (Hooray if it was already in fullscreen.)
- Maybe there's some Windows function to do it, I don't know.
[edit] Just be warned that this is highly platform-specific. Just about any solution you use will require Windows (and possibly a specific version of Windows) to run properly. [/edit]
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
tanx , great stuff, got it .and ok i'll keep that it mind
Highlight Your Codes
The Boost C++ Libraries (online Reference)
Bill Bryson"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
Yeah, that's what I'd do too. Assuming I didn't go for option #1 for some reason.
Just to clear something up:
What I mean by "Hooray" is that it will switch out of fullscreen and into windowed mode again.3. Simulate ALT-ENTER to toggle fullscreen. (Hooray if it was already in fullscreen.)
Oh, and also see Masterx's post at the end of this thread. C++ Full Screen
I think s/he's found a solution. (An unportable one, but hey. It's inherently unportable.)
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Last edited by Masterx; 06-12-2009 at 06:07 PM.
Highlight Your Codes
The Boost C++ Libraries (online Reference)
Bill Bryson"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
Here's a little more "robust" version - and a proper "send keys" version for 9x (if you care about that platform).
fullscreening the dos window
gg