SetWindowThemeNonClientAttributes function (uxtheme.h)

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

Syntax

HRESULT SetWindowThemeNonClientAttributes(
  [in] HWND  hwnd,
  [in] DWORD dwMask,
  [in] DWORD dwAttributes
);

Parameters

[in] hwnd

Type: HWND

A handle to the window in which to apply changes.

[in] dwMask

Type: DWORD

A bitmask that describes which values are to be modified. Can be a combination of the WTNCA constants.

[in] dwAttributes

Type: DWORD

A combination of flags that modify window visual style attributes based on dwMask. Can be a combination of the WTNCA constants.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uxtheme.h
Library UxTheme.lib
DLL UxTheme.dll