Full Screen

This is a discussion on Full Screen within the C++ Programming forums, part of the General Programming Boards category; Hi, could some one please tell me a piece of code in c++, not mfc, on how to make it ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    5

    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
    Posts
    5,681
    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:
    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

    Make sure you have a look at the the posting guidelines:
    http://cboard.cprogramming.com/annou...ouncementid=51
    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:
    http://cboard.cprogramming.com/search.php
    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:

    http://cboard.cprogramming.com/showgroups.php
    I'd suggest a search since this has been addressed before.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    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
    Posts
    4,676
    Read my post here: fullscreening the dos window

    gg

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

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

  5. #5
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154
    In the console, you could try this, but it isn't very good and doesn't take into account different screen resolutions.
    Code:
    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, 03:43 AM
  5. Full Screen
    By JamMan in forum C++ Programming
    Replies: 3
    Last Post: 11-21-2001, 02:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21