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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-11-19 15:40:07 +08:00 committed by Alexandre Julliard
parent ea71625cf1
commit 438078d045

View file

@ -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;