Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find zoom level
Message
From
28/11/2020 09:36:18
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
28/11/2020 09:03:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
01677297
Message ID:
01677305
Views:
59
>Windows 10 allows to set zoom level other than 100% using right click and selecting display properties as shown in attaced image.
>
>How to find it programmaticaly in Microsoft Visual FoxPro 9 application ?
>
>Is there some _screen or other property, Windows API call or can it calculated.
>If setting as in attached image is used, value should be 1.25 (since 125% is specified by user )
>
>Posted also in https://stackoverflow.com/questions/65050377/find-zoom-level-in-windows-10

What I do in my listener: (VFPA, VFP9 reports in scaled monitors are crap)
DECLARE INTEGER GetDpiForWindow IN user32.DLL LONG HWND
DECLARE INTEGER GetDesktopWindow IN user32.DLL
?GetDpiForWindow(_SCREEN.HWND)/GetDpiForWindow(GetDesktopWindow())
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform