Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Actual Resolution
Message
De
15/02/2002 11:46:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/02/2002 04:03:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00620537
Message ID:
00620722
Vues:
16
>Hi everyone!
>
>How can I get the current resolution of the screen?
>
>Best thanks

Robert,
sysmetric(1) and 2 give it but not reliable (resolution changed while vfp session is open it reports old value).
This code from George Tasker works right all the time (thanks again George) :
#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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform