getwindowtheme (uxtheme)
Last changed: -208.29.145.8

.
Summary
Retrieves a theme handle for a window that has visual styles applied.

C# Signature:

[DllImport("uxtheme", ExactSpelling=true)]
public extern static IntPtr GetWindowTheme(IntPtr hWnd);

VB .NET Signature:

Public Declare Function GetWindowTheme Lib "uxtheme.dll" (ByVal hWnd As IntPtr) As IntPtr

User-Defined Types:

None.

Notes:

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.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

None available.

Documentation