comctl32/taskdialog: Add vertical spacing for radio buttons.
Add vertical spacing to make dialog look nicer. Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4a9b877a98
commit
8097fbdf50
|
@ -939,7 +939,7 @@ static void taskdialog_layout(struct taskdialog_info *dialog_info)
|
||||||
for (i = 0; i < dialog_info->radio_button_count; i++)
|
for (i = 0; i < dialog_info->radio_button_count; i++)
|
||||||
{
|
{
|
||||||
x = main_icon_right + h_spacing;
|
x = main_icon_right + h_spacing;
|
||||||
y = dialog_height;
|
y = dialog_height + v_spacing;
|
||||||
taskdialog_get_radio_button_size(dialog_info, dialog_info->radio_buttons[i], dialog_width - x - h_spacing, &size);
|
taskdialog_get_radio_button_size(dialog_info, dialog_info->radio_buttons[i], dialog_width - x - h_spacing, &size);
|
||||||
size.cx = dialog_width - x - h_spacing;
|
size.cx = dialog_width - x - h_spacing;
|
||||||
SetWindowPos(dialog_info->radio_buttons[i], 0, x, y, size.cx, size.cy, SWP_NOZORDER);
|
SetWindowPos(dialog_info->radio_buttons[i], 0, x, y, size.cx, size.cy, SWP_NOZORDER);
|
||||||
|
|
Loading…
Reference in New Issue