Zhiyi Zhang : comctl32/button: Use client rectangle as content rectangle for themed group boxes.
Alexandre Julliard
julliard at winehq.org
Fri Nov 19 15:45:31 CST 2021
Module: wine
Branch: master
Commit: 438078d045c83499ec8a62441b2b9fb14b1d4cea
URL: https://source.winehq.org/git/wine.git/?a=commit;h=438078d045c83499ec8a62441b2b9fb14b1d4cea
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Fri Nov 19 15:40:07 2021 +0800
comctl32/button: Use client rectangle as content rectangle for themed group boxes.
Themed group boxes always use client rectangle as content rectangle regardless of group box content
margin specified by theme files.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52028
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c
index 2e3d8912a66..d537629fa35 100644
--- a/dlls/comctl32/button.c
+++ b/dlls/comctl32/button.c
@@ -2900,7 +2900,7 @@ static void GB_ThemedPaint(HTHEME theme, const BUTTON_INFO *infoPtr, HDC hDC, in
}
GetClientRect(infoPtr->hwnd, &clientRect);
- GetThemeBackgroundContentRect(theme, hDC, BP_GROUPBOX, state, &clientRect, &contentRect);
+ contentRect = clientRect;
region = set_control_clipping(hDC, &clientRect);
bgRect = contentRect;
More information about the wine-cvs
mailing list