Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e77771c0
Commit
e77771c0
authored
May 05, 2017
by
Huw Davies
Committed by
Alexandre Julliard
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Set the radiobuttons' font if they're part of a visual group.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
00994524
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
itemdlg.c
dlls/comdlg32/itemdlg.c
+23
-18
No files found.
dlls/comdlg32/itemdlg.c
View file @
e77771c0
...
...
@@ -1316,13 +1316,34 @@ static UINT ctrl_container_resize(FileDialogImpl *This, UINT container_width)
return
container_height
;
}
static
void
ctrl_set_font
(
customctrl
*
ctrl
,
HFONT
font
)
{
customctrl
*
sub_ctrl
;
cctrl_item
*
item
;
SendMessageW
(
ctrl
->
hwnd
,
WM_SETFONT
,
(
WPARAM
)
font
,
TRUE
);
LIST_FOR_EACH_ENTRY
(
sub_ctrl
,
&
ctrl
->
sub_cctrls
,
customctrl
,
sub_cctrls_entry
)
{
ctrl_set_font
(
sub_ctrl
,
font
);
}
if
(
ctrl
->
type
==
IDLG_CCTRL_RADIOBUTTONLIST
)
{
LIST_FOR_EACH_ENTRY
(
item
,
&
ctrl
->
sub_items
,
cctrl_item
,
entry
)
{
SendMessageW
(
item
->
hwnd
,
WM_SETFONT
,
(
WPARAM
)
font
,
TRUE
);
}
}
}
static
void
ctrl_container_reparent
(
FileDialogImpl
*
This
,
HWND
parent
)
{
LONG
wndstyle
;
if
(
parent
)
{
customctrl
*
ctrl
,
*
sub_ctrl
;
customctrl
*
ctrl
;
HFONT
font
;
wndstyle
=
GetWindowLongW
(
This
->
cctrls_hwnd
,
GWL_STYLE
);
...
...
@@ -1340,23 +1361,7 @@ static void ctrl_container_reparent(FileDialogImpl *This, HWND parent)
LIST_FOR_EACH_ENTRY
(
ctrl
,
&
This
->
cctrls
,
customctrl
,
entry
)
{
if
(
font
)
SendMessageW
(
ctrl
->
hwnd
,
WM_SETFONT
,
(
WPARAM
)
font
,
TRUE
);
/* If this is a VisualGroup */
LIST_FOR_EACH_ENTRY
(
sub_ctrl
,
&
ctrl
->
sub_cctrls
,
customctrl
,
sub_cctrls_entry
)
{
if
(
font
)
SendMessageW
(
sub_ctrl
->
hwnd
,
WM_SETFONT
,
(
WPARAM
)
font
,
TRUE
);
}
if
(
ctrl
->
type
==
IDLG_CCTRL_RADIOBUTTONLIST
)
{
cctrl_item
*
item
;
LIST_FOR_EACH_ENTRY
(
item
,
&
ctrl
->
sub_items
,
cctrl_item
,
entry
)
{
if
(
font
)
SendMessageW
(
item
->
hwnd
,
WM_SETFONT
,
(
WPARAM
)
font
,
TRUE
);
}
}
if
(
font
)
ctrl_set_font
(
ctrl
,
font
);
customctrl_resize
(
This
,
ctrl
);
}
}
...
...
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