Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to get screen height * width ?
Message
De
29/12/1999 10:15:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00309284
Message ID:
00309841
Vues:
51
>Hi George,
>>It returns 1280*996 with one line taskbar and 1280*972 with 2 lines taskbar. As to my understanding it does report taskbar area subtracted. Well I take my word back about WinAPI :) This is valuable routine for me, thanks :)
>
>Hi Cetin,
>
>First, you're welcome
>
>Yep, it does provided that the user (like me) doesn't have the Auto Hide option checked on the task bar properties. And it's time for another retraction< g >. I inadvertantly chose the wrong parameters for GetSystemMetrics() when I tested. So without further ado (and not ADO< g >), here's the right information.
>#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_CYSCREEN)
There's no difference between SM_CXSCREEN and SM_CXFULLSCREEN in the main VFP window. The differences between SM_CYSCREEN and SM_CYFULLSCREEN are these:
>
>SM_CYSCREEN is the full height of the screen in pixels.
>
>SM_CYFULLSCREEN is height of the screen not including the task bar (if showing) nor the VFP status bar.
>
>Hope that clears this up.


Great George :)
I can get correct results now *|*
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