UxThemeSetWindowTheme Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("UxTheme.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true)]
public static HResult SetWindowTheme(
	IntPtr hWnd,
	string subAppName,
	string subIdList
)

Parameters

hWnd  IntPtr
Handle to the window whose visual style information is to be changed.
subAppName  String
Pointer to a string that contains the application name to use in place of the calling application's name.

If this parameter is , the calling application's name is used.

subIdList  String
Pointer to a string that contains a semicolon-separated list of CLSID names to use in place of the actual list passed by the window's class.

If this parameter is , the ID list from the calling class is used.

Return Value

HResult
If this function succeeds, it returns S_OK. Otherwise, it returns a different error code.

Remarks

See Also