UxThemeSetWindowTheme Method
Causes a window to use a different set of visual style information than its class normally uses.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("UxTheme.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function SetWindowTheme (
hWnd As IntPtr,
subAppName As String,
subIdList As String
) As HResult
Dim hWnd As IntPtr
Dim subAppName As String
Dim subIdList As String
Dim returnValue As HResult
returnValue = UxTheme.SetWindowTheme(hWnd,
subAppName, subIdList)
public:
[DllImportAttribute(L"UxTheme.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static HResult SetWindowTheme(
IntPtr hWnd,
String^ subAppName,
String^ subIdList
)
[<DllImportAttribute("UxTheme.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member SetWindowTheme :
hWnd : IntPtr *
subAppName : string *
subIdList : string -> HResult
No code example is currently available or this language may not be supported.
- 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.
HResult
If this function succeeds, it returns
S_OK. Otherwise, it returns a different error code.