summaryrefslogtreecommitdiff
path: root/alf/alfcompat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfcompat.cpp')
-rw-r--r--alf/alfcompat.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/alf/alfcompat.cpp b/alf/alfcompat.cpp
index df7f27d..7b30eac 100644
--- a/alf/alfcompat.cpp
+++ b/alf/alfcompat.cpp
@@ -476,6 +476,22 @@ ALF_Compat_fallbackGetThemeMargins(HTHEME hTheme,
return E_NOTIMPL;
}
+static HRESULT WINAPI
+ALF_Compat_fallbackLoadIconWithScaleDown(HINSTANCE hinst,
+ PCWSTR pszName,
+ int cx,
+ int cy,
+ HICON *phico)
+{
+ (void)hinst;
+ (void)pszName;
+ (void)cx;
+ (void)cy;
+ (void)phico;
+
+ return E_NOTIMPL;
+}
+
static BOOL CALLBACK
ALF_Compat_DrawDisabledText_DrawStateProc(HDC hdc,
@@ -612,6 +628,8 @@ void ALF_LoadCompatFunctions(void)
LOAD_FUNC(uxtheme, GetThemeColor);
LOAD_FUNC(uxtheme, GetThemeMargins);
+ LOAD_FUNC(comctl32, LoadIconWithScaleDown);
+
// initialize helper function for disabled text
if (ALF_Compat_Is40()) {
if (GetSystemMetrics(SM_SLOWMACHINE)) {
@@ -704,6 +722,7 @@ void ALF_UnloadCompatFunctions(void)
UNLOAD_FUNC(GetThemePartSize);
UNLOAD_FUNC(GetThemeColor);
UNLOAD_FUNC(GetThemeMargins);
+ UNLOAD_FUNC(LoadIconWithScaleDown);
FreeLibrary(_alf_dll_uxtheme);
FreeLibrary(_alf_dll_user32);
@@ -741,3 +760,4 @@ BOOL (WINAPI *ALF_Compat_BufferedPaintRenderAnimation)(HWND,HDC) = NULL;
HRESULT (WINAPI *ALF_Compat_GetThemeTransitionDuration)(HTHEME,int,int,int,int,DWORD*) = NULL;
HRESULT (WINAPI *ALF_Compat_GetThemeColor)(HTHEME,int,int,int,COLORREF*) = NULL;
HRESULT (WINAPI *ALF_Compat_GetThemeMargins)(HTHEME,HDC,int,int,int,const RECT *,MARGINS *) = NULL;
+HRESULT (WINAPI *ALF_Compat_LoadIconWithScaleDown)(HINSTANCE,PCWSTR,int,int,HICON *) = NULL;