mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
Ulrich Czekalla <ulrich@codeweavers.com>
Set WS_EX_CONTROLPARENT when dialog has DS_CONTROL. Mike McCormack <mike@codeweavers.com> Strip WS_CAPTION and WS_SYSMENU for child dialogs. svn path=/trunk/; revision=14141
This commit is contained in:
parent
31046fef6e
commit
11c6007bb9
|
@ -708,8 +708,12 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
|||
rect.left = rect.top = 0;
|
||||
rect.right = MulDiv(template.cx, dlgInfo->xBaseUnit, 4);
|
||||
rect.bottom = MulDiv(template.cy, dlgInfo->yBaseUnit, 8);
|
||||
if (template.style & WS_CHILD)
|
||||
template.style &= ~(WS_CAPTION|WS_SYSMENU);
|
||||
if (template.style & DS_MODALFRAME)
|
||||
template.exStyle |= WS_EX_DLGMODALFRAME;
|
||||
if (template.style & DS_CONTROL)
|
||||
template.exStyle |= WS_EX_CONTROLPARENT;
|
||||
AdjustWindowRectEx( &rect, template.style, (dlgInfo->hMenu != 0), template.exStyle );
|
||||
rect.right -= rect.left;
|
||||
rect.bottom -= rect.top;
|
||||
|
|
Loading…
Reference in a new issue