Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Screen Dimensions
Message
 
À
10/02/2000 05:19:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00329897
Message ID:
00337091
Vues:
26
Cetin,

Is there any way to SET the screen resolution using any of these values from VFP?

Thanks

>
>I got this code from George Tasker (thanks George) and returns correct results :
>
#define SM_CXSCREEN             0 && Screen width in pixels
>#define SM_CYSCREEN             1 && Screen height in pixels
>#define SM_CXFULLSCREEN         16 && Client area width
>#define SM_CYFULLSCREEN         17 && Client area height
>DECLARE INTEGER GetSystemMetrics IN Win32API;
>  INTEGER nIndex
>* Example
>? GetSystemMetrics(SM_CXSCREEN)
>? GetSystemMetrics(SM_CYSCREEN)
>? GetSystemMetrics(SM_CXFULLSCREEN)
>? GetSystemMetrics(SM_CYFULLSCREEN)
Cetin
For every bug fixed, there is a bigger bug not yet discovered.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform