Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to get screen height * width ?
Message
De
30/12/1999 09:53:15
 
 
À
30/12/1999 09:32:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00309284
Message ID:
00310352
Vues:
49
>>>Sysmetric() maps to the 16bit Win API, the Taskbar info was added in the Win32 API. They probably won't update it because they made it so easy to call the API directly.
>>
>>Hi Albert,
>>
>>Let's clear this up so that no one misunderstands what's said here. VFP isn't calling a 16 bit function. It's calling GetSystemMetrics() in USER32.DLL. This function, however, was available in Win16, and FPW called that one.
>>
>>Unfortunately, from my POV, the parameters to SYSMETRIC() don't directly correspond to those passed to GetSystemMetrics(). For example, the screen width in SYSMETRIC() is 1, in GetSystemMetrics() you use 0.
>
>Of course it is, the problem is that it is only passing the parameters the apply to the 16bit version.

If you aren't happy with it, you can call GetSystemMetrics yourself Albert - not a difficult structure. If they were going to expose part of the API, there are a whole lot of things I'd put far ahead of the system metric information because of the relative difficulty of accessing them.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform