![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Win32 API -- SM_CXSCREEN with 2 monitors
for some reason, the return value of GetSystemMetrics with CM_XSCREEN is only 1280 when I'm running two monitors at 1280x1024 each. Shouldn't it return 2560? If not, what can I do to get the total display size? I know I can just multiply the value by two, but what if I don't know whether the system I'm running on will have dual monitors?
|
|
|
|
|
|
#2 |
|
Programmer
Join Date: Jun 2005
Posts: 99
Rep Power: 4
![]() |
SM_CXSCREEN gives you the width of the primary monitor.
take a look at the GetSystemMetrics() documentation here . i think you want SM_XVIRTUALSCREEN and SM_YVIRTUALSCREEN for the total screen area. |
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Well, you're wrong: it's SM_CXVIRTUALSCREEN and SM_CYVIRTUALSCREEN, but you pointed me in the right direction, and for that I thank you.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|