diff options
author | John Ankarström <john@ankarstrom.se> | 2022-09-02 01:21:58 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-09-02 01:21:58 +0200 |
commit | bb9280267bfb78a8d69adea02f5ed7894833b19d (patch) | |
tree | 7cda0c2d80afafb046790955711eb5af1582ebdc /c/win.h | |
parent | c624a89b4f1cccfefd60424a3181d76e4692fa4d (diff) | |
download | EpisodeBrowser-bb9280267bfb78a8d69adea02f5ed7894833b19d.tar.gz |
Improve Windows XP compatibility.
Various bug fixes.
Diffstat (limited to 'c/win.h')
-rw-r--r-- | c/win.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |