screen resolution

This is a discussion on screen resolution within the Windows Programming forums, part of the Platform Specific Boards category; how do i get the current screen resolution?...

  1. #1
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62

    screen resolution

    how do i get the current screen resolution?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Code:
    int cx, //screen width
         cy;//screen height
    
    cx = GetSystemMetrics(SM_CXFULLSCREEN);
    cy = GetSystemMetrics(SM_CYFULLSCREEN);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ubuntu screen resolution
    By lruc in forum Tech Board
    Replies: 13
    Last Post: 11-27-2008, 04:03 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 03:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM
  4. Getting the screen resolution
    By Finchie_88 in forum Windows Programming
    Replies: 2
    Last Post: 10-26-2004, 06:03 PM
  5. 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

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