My company developed some custom controls for use in our applications and they look very nice too. However some of them don't work if Windows XP is using a classic theme rather than XP Theme.

Is it possible to detect what theme windows XP is using so that we can render the controls differently depending on the theme in use?

Cheers.