Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

EnableTheming function

Windows Vista through Windows 7: Enables or disables visual styles for the current user in the current and later sessions.

Windows 8 and later: This function does nothing. Visual styles are always enabled in Windows 8 and later.

Syntax


HRESULT EnableTheming(
  _In_ BOOL fEnable
);

Parameters

fEnable [in]

Type: BOOL

Receives one of the following values.

ValueMeaning
TRUE

Enables visual styles. If the user previously had an active visual style, it becomes active again.

Note  Only clients with trusted computing base (TCB) privileges, where the client acts as part of the operating system, can load or change a global theme.
FALSE

Disables visual styles and turns visual styles off.

 

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Uxtheme.h

Library

UxTheme.lib

DLL

UxTheme.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft