>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-10What 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.
OffThere is no place like [::1]