From 26c4d6b3a4bceb640bf39d4f891160cceb312b9f Mon Sep 17 00:00:00 2001 From: Joshua Thielen Date: Wed, 19 Sep 2001 22:33:01 +0000 Subject: [PATCH] Changed MDICreateChild to support CW_USEDEFAULT for 16-bit MDI windows. --- windows/mdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windows/mdi.c b/windows/mdi.c index 9ce4d2ef4db..92a444933f8 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -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;