LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Number of screens

Solved!
Go to solution

Hi,

Is there a way to know the number of screens connected to a PC ?

 

Thanks

Bertrand

0 Kudos
Message 1 of 5
(2,828 Views)
Solution
Accepted by topic author Bertrand_ENAC

Hello Bertrand,

GetSystemAttribute (ATTR_NUM_MONITORS, ); will do

Message 2 of 5
(2,820 Views)

Hi Wolfgang

 

Thank you very munch for the answer.

Is there also a way to get the resolution of each monitor connected ?

 

In Windows one can set the position of the secondary monitors.

Is there a way to know the position of the additional monitors regarding the main monitor?

 

Bertrand

0 Kudos
Message 3 of 5
(2,747 Views)

You can use GetScreenSize() and GetMonitorAttribute()and GetSystemAttribute().

For details see this thread.

Message 4 of 5
(2,737 Views)

Hi Wolgang,

 

I found the solution using GetMonitorAttribute() and GetMonitorFromPoint().

 

Thank you again for your precious help
Bertrand

0 Kudos
Message 5 of 5
(2,735 Views)