Thread: How can I change the screen size?

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    How can I change the screen size?

    How can I change the screen size?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I assume you mean programmatically, rather than the obvious "click and drag" the arrow?
    If so, which API would you like?
    Win32, DirectX, ....
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    If win32 (like many of your other threads) than you may look into:

    EnumDisplaySettings
    ChangeDisplaySettings

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I can not figure out how to use ChangeDisplaySettings().

  5. #5
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    You have to define a DEVMODE structure, not really define it but set the values of it's members. Then you will have a handle on it and pass that as the first argument. Then just pass any flags you want. DEVMODE structure
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  6. #6
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    http://www.mentalis.org/apilist/Chan...ettings.shtml#

    Visual Basic example of changing resolution with the API. Just for concept at least.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 04:05 AM
  2. Any way to dynamically change an array size in C?
    By MrSteve in forum C Programming
    Replies: 15
    Last Post: 07-15-2008, 08:32 PM
  3. How to change X-Server default gray screen ?
    By baskar.v in forum Linux Programming
    Replies: 2
    Last Post: 05-07-2008, 09:12 AM
  4. Trouble with DMA Segmentation Faults
    By firestorm717 in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 09:20 PM
  5. change array size
    By dontknow in forum C++ Programming
    Replies: 6
    Last Post: 04-05-2002, 02:25 PM