IsAppThemed function (uxtheme.h)

Reports whether the current application's user interface displays using visual styles.

Syntax

BOOL IsAppThemed();

Return value

Type: BOOL

Returns one of the following values.

Return code Description
TRUE
The application has a visual style applied.
FALSE
The application does not have a visual style applied.

Remarks

Prior to Windows 8, a visual style can be turned off in Control Panel, so that an application can support visual styles but not have a visual style applied at a given time.

In Windows 8, it is not possible to turn off visual styles.

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

Requirements

Requirement Value
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 (version 1.0 or later)