Changed MDICreateChild to support CW_USEDEFAULT for 16-bit MDI

windows.
This commit is contained in:
Joshua Thielen 2001-09-19 22:33:01 +00:00 committed by Alexandre Julliard
parent 536957eb31
commit 26c4d6b3a4
1 changed files with 3 additions and 3 deletions

View File

@ -484,10 +484,10 @@ static HWND MDICreateChild( HWND parent, MDICLIENTINFO *ci,
/* calculate placement */
MDI_CalcDefaultChildPos(parent, ci->nTotalCreated++, pos, 0);
if (cs->cx == CW_USEDEFAULT || !cs->cx) cs->cx = pos[1].x;
if (cs->cy == CW_USEDEFAULT || !cs->cy) cs->cy = pos[1].y;
if (cs->cx == CW_USEDEFAULT || cs->cx == CW_USEDEFAULT16 || !cs->cx) cs->cx = pos[1].x;
if (cs->cy == CW_USEDEFAULT || cs->cy == CW_USEDEFAULT16 || !cs->cy) cs->cy = pos[1].y;
if( cs->x == CW_USEDEFAULT )
if (cs->x == CW_USEDEFAULT || cs->x == CW_USEDEFAULT16)
{
cs->x = pos[0].x;
cs->y = pos[0].y;