Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get screen resolution
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00471746
Message ID:
00471804
Views:
15
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform