mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:28:47 +00:00
comctl32/taskdialog: Add support for TDF_CAN_BE_MINIMIZED.
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
7dcaade498
commit
58c6ae8244
|
@ -488,6 +488,7 @@ static DLGTEMPLATE *create_taskdialog_template(const TASKDIALOGCONFIG *taskconfi
|
|||
}
|
||||
|
||||
template->style = DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_VISIBLE | WS_SYSMENU;
|
||||
if (taskconfig->dwFlags & TDF_CAN_BE_MINIMIZED) template->style |= WS_MINIMIZEBOX;
|
||||
template->cdit = desc.control_count;
|
||||
template->x = (ref_rect.left + ref_rect.right + desc.dialog_width) / 2;
|
||||
template->y = (ref_rect.top + ref_rect.bottom + desc.dialog_height) / 2;
|
||||
|
|
Loading…
Reference in a new issue