COMBO_Size: maintain the height of the RectCombo when the window is

resized.
This commit is contained in:
Pascal Lessard 1999-03-24 14:59:37 +00:00 committed by Alexandre Julliard
parent faa18fd9e5
commit e69fcc054e
1 changed files with 6 additions and 0 deletions

View File

@ -1104,7 +1104,13 @@ static void COMBO_Size( LPHEADCOMBO lphc )
(h == (lphc->RectEdit.bottom - lphc->RectEdit.top)) ) (h == (lphc->RectEdit.bottom - lphc->RectEdit.top)) )
return; return;
} }
//Maintain the RectCombo height
h = lphc->RectCombo.bottom - lphc->RectCombo.top;
lphc->RectCombo = rect; lphc->RectCombo = rect;
lphc->RectCombo.bottom = lphc->RectCombo.top + h;
CBCalcPlacement( lphc, &lphc->RectEdit, &lphc->RectButton, &rect ); CBCalcPlacement( lphc, &lphc->RectEdit, &lphc->RectButton, &rect );
CBResetPos( lphc, &rect, TRUE ); CBResetPos( lphc, &rect, TRUE );
} }