Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Visual Styles
Functions
 IsThemeActive Function

  Switch on low bandwidth view
IsThemeActive Function

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

Syntax

BOOL IsThemeActive(VOID);

Return Value

Returns one of the following values.

TRUEA visual style is enabled, and windows with visual styles applied should call OpenThemeData to start using theme drawing services.
FALSEA 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 Microsoft Windows XP to become unstable.

Function Information

Stock ImplementationUxTheme.dll
Custom ImplementationNo
Headeruxtheme.h
Import libraryUxTheme.lib
Minimum operating systems Windows XP
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
vb.net syntax      dmex   |   Edit   |   Show History
<DllImport("uxtheme.dll", CharSet:=CharSet.Unicode)> _
Public Shared Function IsThemeActive() As Integer
End Function
Tags What's this?: Add a tag
Flag as ContentBug
C# syntax      dmex   |   Edit   |   Show History
[DllImport("uxtheme.dll", CharSet=CharSet.Unicode)]
public static extern int IsThemeActive();
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker