IsThemeActive function (uxtheme.h)

Tests if a visual style for the current application is active.


BOOL IsThemeActive();

Return value

Type: BOOL

Returns one of the following values.

Return code Description
A visual style is enabled, and windows with visual styles applied should call OpenThemeData to start using theme drawing services.
A visual style is not enabled, and the window message handler does not need to make another call to IsThemeActive until it receives a WM_THEMECHANGED message.


Do not call this function during DllMain or global objects constructors. This may cause invalid return values.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header uxtheme.h
Library UxTheme.lib
DLL UxTheme.dll