diff options
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; } |