Full Screen

This is a discussion on Full Screen within the C++ Programming forums, part of the General Programming Boards category; Does anybody know how to set a console program to full screen mode?...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    28

    Full Screen

    Does anybody know how to set a console program to full screen mode?
    ---Rainer
    Digital pimp, hard at work

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Think i can help you with that. Try the code below, that should do the trick.

    Code:
    void fullscreen()          //another cool trick that I use to make it full screen or back to normal size
    {
    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);
    }
    Just call the function, in say like this:

    Code:
    cout << "Full screen?: ";
    cin >> somevariable;
    
    if (the variable is yes)
    {
    fullscreen();
    }
    Last edited by RoD; 08-07-2003 at 09:03 PM.

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    We keep that information on adrianxw's site. More specifically, it's right here on his site.
    Away.

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Wow, someone needs to quote their sources.

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    Thanks
    ---Rainer
    Digital pimp, hard at work

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, 02:33 PM
  2. Opening in full screen
    By MaGaIn in forum C++ Programming
    Replies: 14
    Last Post: 08-21-2007, 12:12 PM
  3. !!!!!!Full screen!!!!!
    By Lukas in forum C++ Programming
    Replies: 2
    Last Post: 03-19-2003, 04:43 AM
  4. full screen
    By DominicTrix in forum Windows Programming
    Replies: 2
    Last Post: 04-21-2002, 07:13 AM
  5. Full Screen
    By JamMan in forum C++ Programming
    Replies: 3
    Last Post: 11-21-2001, 03:10 PM

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