Is user using Window XP or Windows Classic theme?

browntrout

New member
Local time
Today, 01:13
Joined
Oct 14, 2002
Messages
7
Is there a way in which I can accurately discover whether a user has selected Windows XP themes or Windows Classic themes for their machine?

(It would be nice to be able to design/modify forms to take different settings into account.)
 
Have you checked to see if this is in the Registry? (look in the HKEY_Current_User/Software) You can then write code to read the registry Setting.
 
Thanks for a helpful suggestion.
HKEY_Current_User/Software/Microsoft/Windows/Themes/LastTheme seems to lead in the right direction.

But, if user is like me, they may well have tweaked the display and saved it under a different name. Although my current theme is essentially XP, it doesn't go under that, or similar, name. Looks too unreliable to use generally. I still need to probe a bit deeper and, in the Registry, we're definitely getting into areas that make me nervous.

At the moment I'm using a temporary workround (using the different form caption sizes as an indicator) and, so far, it hasn't let me down (on Windows 98, 2000 and XP). But it makes me nervous ...
 

Users who are viewing this thread

Back
Top Bottom