Thread: Full Screen

  1. #1
    Registered User
    Join Date
    Feb 2005

    Full Screen

    Hi, could some one please tell me a piece of code in c++, not mfc, on how to make it DOS window a full screen. like, when the program is run, it runs in full screen. Thanks.

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Quote Originally Posted by kermi3
    Welcome to the boards. If you haven't already done so then please take some time to familiarise yourself with the faq:

    Make sure you have a look at the the posting guidelines:
    Following the rules will ensure you get a prompt answer to your question.

    Remember, too, that the board has a search facility, a link is at the top of your screen:
    It will often get you a quicker answer to your questions than waiting for a response to one you have posted.

    If you have any questions about this you may ask or you can contact one of our forum leaders:
    I'd suggest a search since this has been addressed before.

  3. #3
    Registered User
    Join Date
    Dec 2004
    I don't know any code for it but you can push Alt-Enter.
    My computer is awesome.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Read my post here:


    In the AltEnter() function remove the line "SetForegroundWindow(GetConsoleWindow());"

    GetConsoleWindow() is only available under XP and 2000 Server.
    Last edited by Codeplug; 03-07-2005 at 07:13 PM.

  5. #5
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    In the console, you could try this, but it isn't very good and doesn't take into account different screen resolutions.
    system("mode con:lines=100);
    system("mode con:cols=200);
    Another way you could do it would be to include the directX lib files and use them, but thats slightly more complicated

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Full Screen
    By Unregistered in forum C++ Programming
    Replies: 25
    Last Post: 06-12-2009, 01:33 PM
  2. Opening in full screen
    By MaGaIn in forum C++ Programming
    Replies: 14
    Last Post: 08-21-2007, 11:12 AM
  3. Full Screen
    By Rainer in forum C++ Programming
    Replies: 4
    Last Post: 08-08-2003, 05:56 AM
  4. !!!!!!Full screen!!!!!
    By Lukas in forum C++ Programming
    Replies: 2
    Last Post: 03-19-2003, 04:43 AM
  5. Full Screen
    By JamMan in forum C++ Programming
    Replies: 3
    Last Post: 11-21-2001, 03:10 PM