Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Vista Aero window padding?
Message
 
 
À
12/01/2010 23:46:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01443441
Message ID:
01443831
Vues:
84
>Thanks for the suggestion -- just got the running with call to DwmGetWindowAttribute(), now going over the results to make sense of it all. Do you recall if there is anything that returns the height of the status bar (the one in VFP main window)? Did notice that it appears to be 24 pixels in height, but not sure if it's always that height or not (haven't checked to see if it varies with DPI setting for display).

Hi Naoto,

I dunno if there's some WIn API that will tell you that. Try this
lnHeight2 = _VFP.Height - _SCREEN.Height
SET STATUS BAR OFF
lnHeight1 = _VFP.Height - _SCREEN.Height
SET STATUS BAR ON
? lnHeight2 - lnHeight1
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform