COMBO_Size: maintain the height of the RectCombo when the window is
resized.
This commit is contained in:
parent
faa18fd9e5
commit
e69fcc054e
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue