SetWindowTheme (uxtheme)
Last changed: -82.137.209.8

.
Summary
Causes a window to use a different set of visual style information than its class normally uses.

C# Signature:

[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 SetWindowTheme(IntPtr hWnd, String textSubAppName, String textSubIdList);

[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 SetWindowTheme(IntPtr hWnd, int textSubAppName, String textSubIdList);

[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 SetWindowTheme(IntPtr hWnd, String textSubAppName, int textSubIdList);

[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 SetWindowTheme(IntPtr hWnd, int textSubAppName, int textSubIdList);

VB .NET Signature:

Declare Function SetWindowTheme Lib "uxtheme.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

using System.Runtime.InteropServices;

...

public class MyForm : System.Windows.Forms.Form

...

[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]

        public extern static Int32 SetWindowTheme(IntPtr hWnd, String textSubAppName, String textSubIdList);

...

public MyForm()

{

SetWindowTheme(this.AnyControl.Handle,,);

}

Alternative Managed API:

TODO

Documentation