Handle case when only height is set to CW_USEDEFAULT.

This commit is contained in:
Ulrich Czekalla 2005-01-19 20:54:25 +00:00 committed by Alexandre Julliard
parent 43f8aa4f77
commit 03ffadc499
1 changed files with 7 additions and 0 deletions

View File

@ -824,6 +824,13 @@ static void WIN_FixCoordinates( CREATESTRUCTA *cs, INT *sw)
cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
}
}
/* Handle case where only the cy values is set to default */
else if (cs->cy == CW_USEDEFAULT || cs->cy == CW_USEDEFAULT16)
{
RECT r;
SystemParametersInfoA( SPI_GETWORKAREA, 0, &r, 0);
cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
}
}
}
else