mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Strip WS_CAPTION and WS_SYSMENU for child dialogs.
This commit is contained in:
parent
97ac282fa7
commit
d30469971e
1 changed files with 2 additions and 0 deletions
|
@ -549,6 +549,8 @@ 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;
|
||||
AdjustWindowRectEx( &rect, template.style, (dlgInfo->hMenu != 0), template.exStyle );
|
||||
|
|
Loading…
Reference in a new issue