mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 18:36:32 +00:00
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:
parent
ea71625cf1
commit
438078d045
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue