From 5649a83739f7d2455fdc7a1a7fe8ffdf85a4a060 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Mon, 20 Mar 2023 20:48:34 +0200 Subject: [PATCH] Start11: Fixed a bug that prevented the menu from working when the setting "Disable Recommended section" is used and the display scaling is 125% Related issue: https://github.com/valinet/ExplorerPatcher/issues/1118 --- ExplorerPatcher/lvt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/lvt.c b/ExplorerPatcher/lvt.c index 4b4aae5..254d4c9 100644 --- a/ExplorerPatcher/lvt.c +++ b/ExplorerPatcher/lvt.c @@ -573,9 +573,9 @@ void LVT_StartDocked_120DPIHack(int maxHeight) pStartSizingFrame->lpVtbl->QueryInterface(pStartSizingFrame, &IID_Windows_UI_Xaml_IFrameworkElement, &pFrameworkElement); if (pFrameworkElement) { - pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Collapsed); + if (!IsWindows11Version22H2Build1413OrHigher()) pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Collapsed); pFrameworkElement->lpVtbl->put_MaxHeight(pFrameworkElement, maxHeight); - pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Visible); + if (!IsWindows11Version22H2Build1413OrHigher()) pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Visible); pFrameworkElement->lpVtbl->Release(pFrameworkElement); } pIUIElement->lpVtbl->Release(pIUIElement);