.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH ApplyTheme 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBApplyTheme\fR (UXTHEME.4) .SH SYNOPSIS HRESULT ApplyTheme ( HTHEMEFILE \fIhThemeFile\fR, char* \fIunknown\fR, HWND \fIhWnd\fR ) .SH DESCRIPTION .PP Set a theme file to be the currently active theme. .SH PARAMS \fIhThemeFile\fR Handle to theme file .PP \fIunknown\fR See notes .PP \fIhWnd\fR Window requesting the theme change. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR .PP \fBFailure:\fR \fBHRESULT\fR error-code. .SH NOTES .PP I'm not sure what the second parameter is (the datatype is likely wrong), other then this: Under \fBXP\fR if I pass char b[] = ""; the theme is applied with the screen redrawing really badly (flickers) char b[] = \fB"\0"\fR; where \0 can be one or more of any character, makes no difference the theme is applied smoothly (screen does not flicker) char *b = \fB"\0"\fR or NULL; where \0 can be zero or more of any character, makes no difference the function fails returning invalid parameter.\fB..\fR very strange .SH IMPLEMENTATION .PP Exported by ordinal only. Use \fBGetProcAddress(3w)\fR to obtain a pointer to the function. .PP Implemented in \fB"dlls/uxtheme/system.c"\fR. .PP Debug channel \fB"uxtheme"\fR.