Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DPIAwareManager
Message
From
18/02/2021 03:48:58
 
 
To
18/02/2021 03:24:02
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01678251
Message ID:
01678362
Views:
73
>>I wonder if there is a way to enumerate the available monitors? I tried EnumDisplayDevices but FoxPro crashes on execution. So far I only get the monitor count.
>
>See if http://doughennig.blogspot.com/2010/02/multiple-monitor-class.html is still there. I got good results with it.
>
>There 's something extremely stupid in Windowses about finding the second monitor. At the time I was doing my screen savior (I think it's in downloads here, check under my name) I couldn't find any API that would return an array of monitors. The only thing I found was the function to return a monitor at given position (just pass a pair of coordinates) if it's there. So I had to poke around.

https://github.com/VFPX/Win32API/blob/master/samples/sample_542.md

>Then found that in Python it's a simple call to one of ready objects, and you get an array of objects, one per monitor, and everything's there. Why is it so complicated under windowses is beyond me. If you find something simpler, let me know.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform