Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using GetDeviceCaps with multiple monitors 1

Status
Not open for further replies.

solla

Programmer
Feb 21, 2003
19
FR
I have a multiple monitor setup and I want to print a bitmap from an area of the screen on the 2nd monitor.

However, if I use:

xScrn = GetDeviceCaps(hScreenDC, HORZRES);
yScrn = GetDeviceCaps(hScreenDC, VERTRES);

I get only the size of the primary monitor. This means that with my current logic, I cannot print from the second monitor.

How can I get the size in pixels of the complete screen?

Thanks in advance for any help.
 
To reply to my own message:
On non-NT machines you can use

xSize = GetSystemMetrics( SM_CXVIRTUALSCREEN );
ySize = GetSystemMetrics( SM_CYVIRTUALSCREEN );

For full compatibility, use EnumDisplayMonitors
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top