ApplyTheme(3w)

ApplyTheme3w

Usage

HRESULT ApplyTheme
(
HTHEMEFILE hThemeFile,
char* unknown,
HWND hWnd
)

Overview

Set a theme file to be the currently active theme.

Params

hThemeFile Handle to theme file

unknown See notes

hWnd Window requesting the theme change.

Returns

Success: S_OK

Failure: HRESULT error-code.

Notes

I'm not sure what the second parameter is (the datatype is likely wrong), other then this: Under XP if I pass char b[] = ""; the theme is applied with the screen redrawing really badly (flickers) char b[] = " "; where can be one or more of any character, makes no difference the theme is applied smoothly (screen does not flicker) char *b = " " or NULL; where can be zero or more of any character, makes no difference the function fails returning invalid parameter... very strange

Implementation

Exported by ordinal only. Use GetProcAddress(3w) to obtain a pointer to the function.

Implemented in "dlls/uxtheme/system.c".

Debug channel "uxtheme".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.