Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3a2d2adc
Commit
3a2d2adc
authored
Nov 11, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/button: Support BS_PUSHLIKE for themed group boxes.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e9448e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
button.c
dlls/comctl32/button.c
+6
-4
No files found.
dlls/comctl32/button.c
View file @
3a2d2adc
...
...
@@ -448,7 +448,7 @@ static int get_draw_state(const BUTTON_INFO *infoPtr)
return
style
&
BS_PUSHLIKE
?
pushlike_rb_states
[
check_state
][
state
]
:
rb_states
[
check_state
][
state
];
case
BS_GROUPBOX
:
return
gb_states
[
state
];
return
style
&
BS_PUSHLIKE
?
pb_states
[
state
]
:
gb_states
[
state
];
default:
WARN
(
"Unsupported button type 0x%08x
\n
"
,
type
);
return
PBS_NORMAL
;
...
...
@@ -2883,6 +2883,7 @@ static void GB_ThemedPaint(HTHEME theme, const BUTTON_INFO *infoPtr, HDC hDC, in
HFONT
font
,
hPrevFont
=
NULL
;
BOOL
created_font
=
FALSE
;
TEXTMETRICW
textMetric
;
int
part
;
HRESULT
hr
=
GetThemeFont
(
theme
,
hDC
,
BP_GROUPBOX
,
state
,
TMT_FONT
,
&
lf
);
if
(
SUCCEEDED
(
hr
))
{
...
...
@@ -2914,9 +2915,10 @@ static void GB_ThemedPaint(HTHEME theme, const BUTTON_INFO *infoPtr, HDC hDC, in
ExtSelectClipRgn
(
hDC
,
textRegion
,
RGN_DIFF
);
}
if
(
IsThemeBackgroundPartiallyTransparent
(
theme
,
BP_GROUPBOX
,
state
))
part
=
GetWindowLongW
(
infoPtr
->
hwnd
,
GWL_STYLE
)
&
BS_PUSHLIKE
?
BP_PUSHBUTTON
:
BP_GROUPBOX
;
if
(
IsThemeBackgroundPartiallyTransparent
(
theme
,
part
,
state
))
DrawThemeParentBackground
(
infoPtr
->
hwnd
,
hDC
,
NULL
);
DrawThemeBackground
(
theme
,
hDC
,
BP_GROUPBOX
,
state
,
&
bgRect
,
NULL
);
DrawThemeBackground
(
theme
,
hDC
,
part
,
state
,
&
bgRect
,
NULL
);
if
(
dtFlags
!=
(
UINT
)
-
1
)
{
...
...
@@ -2928,7 +2930,7 @@ static void GB_ThemedPaint(HTHEME theme, const BUTTON_INFO *infoPtr, HDC hDC, in
SelectClipRgn
(
hDC
,
textRegion
);
DeleteObject
(
textRegion
);
}
BUTTON_DrawThemedLabel
(
infoPtr
,
hDC
,
dtFlags
,
&
imageRect
,
&
textRect
,
theme
,
BP_GROUPBOX
,
state
);
BUTTON_DrawThemedLabel
(
infoPtr
,
hDC
,
dtFlags
,
&
imageRect
,
&
textRect
,
theme
,
part
,
state
);
}
SelectClipRgn
(
hDC
,
region
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment