Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DPIAwareManager
Message
De
18/02/2021 03:48:58
 
 
À
18/02/2021 03:24:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
01678251
Message ID:
01678362
Vues:
72
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform