Run a program in fullscreen

This is a discussion on Run a program in fullscreen within the Windows Programming forums, part of the Platform Specific Boards category; How do I write a full-screen program? Can I specify a style in a resource file like this: Code: STYLE ...

  1. #1
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69

    Run a program in fullscreen

    How do I write a full-screen program? Can I specify a style in a resource file like this:
    Code:
    STYLE DS_3DLOOK | WS_MAXIMIZEBOX | SOMETHING_FULLSCREEN | . . .
    or do I need to make it fullscreen when handling the WM_INITDIALOG message?
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Have you tried WS_MAXIMIZE
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    Full screen... as in no title bar on top, and no Windows task bar on the bottom of the screen.
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    You can get the device context to the entire screen by calling GetDC with a NULL argument. This will allow you to draw anywhere and get the information for the screen dimensions.
    Last edited by AndrewHunter; 06-10-2011 at 01:53 PM.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Create a popup window (WS_POPUP) the size of the desktop window.

  6. #6
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    VirtualAce, I do not know why I did not think of that! Thanks!
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Truly Fullscreen
    By Epikhigh in forum C# Programming
    Replies: 4
    Last Post: 10-25-2008, 02:14 PM
  2. This is how to get your program to run fullscreen (console)
    By Raigne in forum Windows Programming
    Replies: 11
    Last Post: 11-25-2005, 07:26 AM
  3. DOS fullscreen
    By Zagaberoo in forum C++ Programming
    Replies: 3
    Last Post: 06-29-2004, 05:45 PM
  4. alt-tab with fullscreen
    By lambs4 in forum Windows Programming
    Replies: 0
    Last Post: 10-12-2003, 05:37 PM
  5. Program the Console Buffer into FULLSCREEN
    By IrishSlasher in forum Windows Programming
    Replies: 1
    Last Post: 11-06-2002, 02:18 AM

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