Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get screen resolution
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00471746
Message ID:
00471804
Vues:
14
>>Christian,
>>
>>The screen resolution and other information about Windows can be retrieved via SYSMETRIC(1) (Horizontal resolution) and SYSMETRIC(2) (Vertical resolution). The function basically maps to GetSystemMetrics(), which can be used as an alternative API call to the above for screen resolution, without having to retrive a device context.
>
>Thanks that you told me, simpler is better of course. Never stop learning :)

Well, as you've found out, GetDeviceCaps() and GetSystemMetrics() both can be used to return values (such number of colors or number of monitors) that are directly available through VFP. I'd certainly encourage you to keep digging.

BTW, VFP is such a big language in terms of the sheer number of functions, that it can be hard to track down whether or not a particular value can be retrieved by a native function (this is especially true with the SYS() functions).
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform