mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 11:57:17 +00:00
Set WS_EX_CONTROLPARENT when dialog has DS_CONTROL.
This commit is contained in:
parent
f714b39762
commit
516caf5a54
|
@ -546,6 +546,8 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
|||
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, (hMenu != 0), template.exStyle );
|
||||
rect.right -= rect.left;
|
||||
rect.bottom -= rect.top;
|
||||
|
|
Loading…
Reference in a new issue