Thread: help using CDS_FULLSCREEN

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    help using CDS_FULLSCREEN

    hello , i am wanting to make one of my programs full screen and i have read that i would need to use CDS_FULLSCREEN....thing is how do you use it?

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    do you mean full screen console?

    well i found CDS_FULLSCREEN in <winuser.h>
    but im not sure how to use it

    Code:
    /* Flags for ChangeDisplaySettings */
    #define CDS_UPDATEREGISTRY  0x00000001
    #define CDS_TEST            0x00000002
    #define CDS_FULLSCREEN      0x00000004
    #define CDS_GLOBAL          0x00000008
    #define CDS_SET_PRIMARY     0x00000010
    #define CDS_VIDEOPARAMETERS 0x00000020
    #define CDS_RESET           0x40000000
    #define CDS_NORESET         0x10000000
    Last edited by sand_man; 05-24-2004 at 02:02 AM.

  3. #3
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    oops

    sorry i forgot to post...this is for a C,win32 api program
    also i think its something like
    ChangeDisplaySettings(not sure wat goes here , setting here);

  4. #4
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    The information you need is in this thread.

    gg

  6. #6
    Registered User
    Join Date
    May 2004
    Posts
    23
    Have you tried

    Code:
    LPDEVMODE lpDevMode;
    ZeroMemory(lpDevMode, sizeof(DEVMODE));
    lpDevMode->dmSize = sizeof(DEVMODE);
    ChangeDisplaySettings(lpDevMode, CDS_FULLSCREEN);
    ?

  7. #7
    Registered User
    Join Date
    May 2004
    Posts
    23
    Sorry...you'll probably want

    Code:
    LPDEVMODE lpDevMode;
    lpDevMode = (LPDEVMODE) LocalAlloc(LPTR, sizeof(DEVMODE));
    ZeroMemory(lpDevMode, sizeof(DEVMODE));
    lpDevMode->dmSize = sizeof(DEVMODE);
    ChangeDisplaySettings(lpDevMode, CDS_FULLSCREEN);
    
    /* rest of your code */
    
    LocalFree(lpDevMode);
    And, yes, I haven't tested this so go test it yourself then if you care.:P

Popular pages Recent additions subscribe to a feed