mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
Wine update to dialog.c, see bug 3644.
svn path=/trunk/; revision=35395
This commit is contained in:
parent
bafb77d60c
commit
a878cd2e46
|
@ -755,14 +755,13 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
||||||
{
|
{
|
||||||
rect.left += MulDiv(template.x, xBaseUnit, 4);
|
rect.left += MulDiv(template.x, xBaseUnit, 4);
|
||||||
rect.top += MulDiv(template.y, yBaseUnit, 8);
|
rect.top += MulDiv(template.y, yBaseUnit, 8);
|
||||||
|
if( !(template.style & (WS_CHILD|DS_ABSALIGN)) )
|
||||||
|
ClientToScreen( owner, (POINT *)&rect );
|
||||||
}
|
}
|
||||||
if ( !(template.style & WS_CHILD) )
|
if ( !(template.style & WS_CHILD) )
|
||||||
{
|
{
|
||||||
INT dX, dY;
|
INT dX, dY;
|
||||||
|
|
||||||
if( !(template.style & DS_ABSALIGN) )
|
|
||||||
ClientToScreen( owner, (POINT *)&rect );
|
|
||||||
|
|
||||||
/* try to fit it into the desktop */
|
/* try to fit it into the desktop */
|
||||||
|
|
||||||
if( (dX = rect.left + rect.right + GetSystemMetrics(SM_CXDLGFRAME)
|
if( (dX = rect.left + rect.right + GetSystemMetrics(SM_CXDLGFRAME)
|
||||||
|
|
Loading…
Reference in a new issue