Export (0) Print
Expand All
Expand Minimize

SetWindowThemeAttribute function

Sets attributes to control how visual styles are applied to a specified window.

Syntax


HRESULT SetWindowThemeAttribute(
  _In_  HWND hwnd,
  _In_  enum WINDOWTHEMEATTRIBUTETYPE eAttribute,
  _In_  PVOID pvAttribute,
  _In_  DWORD cbAttribute
);

Parameters

hwnd [in]

Type: HWND

Handle to a window to apply changes to.

eAttribute [in]

Type: enum WINDOWTHEMEATTRIBUTETYPE

Value of type WINDOWTHEMEATTRIBUTETYPE that specifies the type of attribute to set. The value of this parameter determines the type of data that should be passed in the pvAttribute parameter. Can be the following value.

ValueMeaning
WTA_NONCLIENT

Specifies non-client related attributes. pvAttribute must be a pointer of type WTA_OPTIONS.

 

pvAttribute [in]

Type: PVOID

A pointer that specifies attributes to set. Type is determined by the value of the eAttribute value.

cbAttribute [in]

Type: DWORD

Specifies the size, in bytes, of the data pointed to by pvAttribute.

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 2008 [desktop apps only]

Header

Uxtheme.h

Library

UxTheme.lib

DLL

UxTheme.dll

See also

WINDOWTHEMEATTRIBUTETYPE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft