Console Screen Mode

This is a discussion on Console Screen Mode within the Windows Programming forums, part of the Platform Specific Boards category; Hi! Anyone knows how can I retireve information in which screen mode console is (Window or Fullscreen Mode)? Thanks!...

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Question Console Screen Mode

    Hi!

    Anyone knows how can I retireve information in which screen mode console is (Window or Fullscreen Mode)?

    Thanks!
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Retrieve information from what?

  3. #3
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    From the console or windows.

    Look, I just want to know the screen mode of the current console program.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Screen mode? You mean the X and Y sizes? It's in the Console
    App SDK of MSDN,

  5. #5
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    I think you can do this using Allegro or another API.
    Check out on their website.

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by Vber
    I think you can do this using Allegro or another API.
    Check out on their website.
    Allegro??? He's talking about a Console Application! Allegro
    is a game programming library! Did i miss something?

  7. #7
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    No! I don't mean x and y sizes. I mean screen mode --->>>> FULLSCREEN or WINDOW.

    When I run my console program I want that at the startup the program will check in which mode is it. If it is in a window mode then the program will "press" alt+enter and the program will be in fullscreen mode. I hope this is clear enough to understand.
    Last edited by GaPe; 02-09-2003 at 11:28 AM.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  8. #8
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    Not just a programming library...
    with library you have a lot of functions to workout with consoles and so on... and I think what he wants is there, he should try to search on their api...

    Take it easy dude... I'm just trying to help.

  9. #9
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    I don't want to use Allegro library. It must be done with WINAPI.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  10. #10
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    you could try this...get the current resolution and check it against the size of your window:

    //width
    int cx = GetSystemMetrics(SM_CXSCREEN);
    // height
    int cy = GetSystemMetrics(SM_CYSCREEN);

    RECT rect = GetWindowRect(hConsole, &rect); //maybe try GetClientRect() here?

    if(rect.right == cx && rect.bottom == cy)

    //etc, etc, etc...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. console screen (Windows)
    By hakan in forum C++ Programming
    Replies: 1
    Last Post: 03-12-2008, 06:35 AM
  3. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 03:56 PM
  4. screen in standby mode at startup
    By bennyandthejets in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 07-11-2002, 06:13 AM
  5. Running in full screen mode!
    By Skute in forum Game Programming
    Replies: 0
    Last Post: 12-10-2001, 02:56 AM

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