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

GetWindowTheme function

Retrieves a theme handle to a window that has visual styles applied.

Syntax


HTHEME GetWindowTheme(
  _In_ HWND hWnd
);

Parameters

hWnd [in]

Type: HWND

Handle of the window.

Return value

Type: HTHEME

The most recent theme handle from OpenThemeData.

Remarks

If a window has a visual style applied, the GetWindowTheme function returns the most recent theme handle from OpenThemeData. If no visual style is applied, GetWindowTheme returns NULL.

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 (version 1.0 or later)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft