Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find zoom level
Message
De
28/11/2020 10:04:13
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
28/11/2020 10:00:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
01677297
Message ID:
01677311
Vues:
40
>Hi!
>
>>
>>DECLARE INTEGER GetDpiForWindow IN user32.DLL LONG HWND
>>DECLARE INTEGER GetDesktopWindow IN user32.DLL
>>SET DECIMALS TO 5
>>*this is the factor all elements are smaller (this is a rectangle on an frx of length n  is n*the result smaller if scaled)
>>? GetDpiForWindow(_SCREEN.HWND),GetDpiForWindow(GetDesktopWindow())
>>*this is the scaling (the inverse of the above)
>>?GetDpiForWindow(GetDesktopWindow())/GetDpiForWindow(_SCREEN.HWND)
>>
>
>This code still returns 96 , 96 and 1.
>Martina code posted in this thread returns correct result.

Is your main monitor scaled the primary one? It runs well on my 150% scaled primary monitor with both VFP9 and VFPA. (GetDesktopWindow() returns the primary monitor)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform