Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find zoom level
Message
De
28/11/2020 09:36:18
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
28/11/2020 09:03:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
01677297
Message ID:
01677305
Vues:
60
>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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform