Tests if a visual style for the current application is active.
Syntax
BOOL IsThemeActive(VOID);
Return Value
Returns one of the following values.
| TRUE | A visual style is enabled, and windows with visual styles applied should call OpenThemeData to start using theme drawing services. |
| FALSE | 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. |
Remarks
Do not call this function during DllMain or global objects contructors. This may cause invalid return values in Windows Vista and may cause Windows XP to become unstable.
Function Information
| Stock Implementation | UxTheme.dll |
|---|
| Custom Implementation | No |
|---|
| Header | uxtheme.h |
|---|
| Import library | UxTheme.lib |
|---|
| Minimum operating systems |
Windows XP |
|---|