mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 03:01:22 +00:00
Wine update to dialog.c, see bug 3644.
svn path=/trunk/; revision=35395
This commit is contained in:
parent
bafb77d60c
commit
a878cd2e46
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue