Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XP Visual Styles!
Message
De
20/04/2006 23:42:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01115129
Message ID:
01115227
Vues:
7
>You're right!
>
>
>>Murad/Enmanuel
>>
>>the vfp function sys(2700) may be preferable
>>
>>
>>if sys(2700) = "1"
>>*!* themes enabled
>>endif
>>
>>
>>attempting to call uxtheme.dll on a non WinXP machine will cause an error
>>
>>Nigel

SYS(2700) enables or disables XP themes in Visual Foxpro only, it does not tell you if Themes is active at the OS level.
* -1: No OS Themes Support, 0: Themes not active, 1: Themes Active
Function IsThemesOn
local lnRetVal

IF VAL(OS(3)) + VAL(OS(4))/100 < 5.01 THEN
   m.lnRetVal = -1
else
   DECLARE INTEGER IsThemeActive IN uxtheme.DLL
   m.lnRetVal = IsThemeActive()
ENDIF
return m.lnRetVal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform