• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 620
  • Last Modified:

obtain the screen resolution

I want to be able to obtain the screen resolution of the monitor.
if its a single montor  having (1600 X 1200) then i can it display it fine.

But if i have a dual monitor/Dual display i want to be able to display 3200 by 2400.

how can i retireve this information using any function??.

I tried getsystemmetrics function using the
SM_CXFULLSCREEN,
SM_CYFULLSCREEN
but it only gave me (1600 X1200) and not the actual 3200 by 2400 for the dual monitor display

0
hari4130
Asked:
hari4130
  • 3
1 Solution
 
Jaime OlivaresCommented:
0
 
Jaime OlivaresCommented:
int width = ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
int height = ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
0
 
Jaime OlivaresCommented:
Sorry, cut and paste problems:
int height = ::GetSystemMetrics(SM_CYVIRTUALSCREEN);

0
 
hari4130Author Commented:
thanks for the quick answer
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now