Thread: getting screen rez?

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    7

    getting screen rez?

    i know that `GetSystemMetrics(SM_CXSCREEN) and `GetSystemMetrics(SM_CYSCREEN)` gets the screens height and width from the 'windows.h' include file, but can you get this info from any other include files?, and whats the commands to get them plus the command to get the depth?.

  2. #2
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    is this is DOS programming on purpose or by mistake?
    hello, internet!

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    7
    on purpose, i'm trying to make the program as small as posable using the least amount of include files, plus i find it easyer to understand DOS programming. i just thought some of the smaller libarys would have commands to get the info, and this would be the best place to ask.

  4. #4
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    this should have been in windows programming but...

    it's declard in winuser.h...windows.h just includes a bunch of other files, if this is the only windows function you're using then just include this file to save space like you want.
    PHP and XML
    Let's talk about SAX

  5. #5
    Registered User
    Join Date
    Dec 2002
    Posts
    7
    thanks thats just what i'm after, does anyone know the command to get the screen depth.?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM