jedivader
jedivader

Reputation: 847

Delphi 7: how to check if Windows themes is enabled?

Using Delphi 7, how can I check if Windows has a theme enabled (i.e. is it the classic gray windows look or not)?

Upvotes: 2

Views: 1366

Answers (2)

Stefan Glienke
Stefan Glienke

Reputation: 21713

You can use the unit UxTheme.pas and call the IsThemeActive function.

Delphi 7 was the first version that shipped with it but it should be possible to use that unit in older versions aswell as it is open source (written by Mike Lischke originally) that just uses WinAPI.

Upvotes: 6

SimaWB
SimaWB

Reputation: 9294

You've to use uxtheme.dll. I use this code in Delphi 5 and it works for me.

Upvotes: 2

Related Questions