Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XP Visual Styles!
Message
From
20/04/2006 23:42:53
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01115129
Message ID:
01115227
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform