From bb9280267bfb78a8d69adea02f5ed7894833b19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 2 Sep 2022 01:21:58 +0200 Subject: Improve Windows XP compatibility. Various bug fixes. --- c/win.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/win.h') diff --git a/c/win.h b/c/win.h index 8329f68..1e09c1f 100644 --- a/c/win.h +++ b/c/win.h @@ -133,14 +133,14 @@ inline BOOL SetWindowRect(const HWND hWnd, const RECT r) * uxtheme.dll exists, and otherwise do nothing. */ inline BOOL EBIsThemeActive() { - extern BOOL (*IsThemeActive)(); + extern BOOL (__stdcall *IsThemeActive)(); return IsThemeActive? IsThemeActive(): 0; } -inline BOOL EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName, +inline HRESULT EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName, const wchar_t* const pszSubIdList) { - extern BOOL (*SetWindowTheme)(HWND, const wchar_t*, const wchar_t*); + extern HRESULT (__stdcall *SetWindowTheme)(HWND, const wchar_t*, const wchar_t*); return SetWindowTheme? SetWindowTheme(hWnd, pszSubAppName, pszSubIdList): 0; } -- cgit v1.2.3