• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 624
  • 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 OlivaresSoftware ArchitectCommented:
0
 
Jaime OlivaresSoftware ArchitectCommented:
int width = ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
int height = ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
0
 
Jaime OlivaresSoftware ArchitectCommented:
Sorry, cut and paste problems:
int height = ::GetSystemMetrics(SM_CYVIRTUALSCREEN);

0
 
hari4130Author Commented:
thanks for the quick answer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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