Native version seems to always re-draw the selected text at the end of

a rollup.
This commit is contained in:
Guy L. Albertelli 2001-03-20 01:51:58 +00:00 committed by Alexandre Julliard
parent 313051f9d6
commit 627aa4d772
1 changed files with 14 additions and 0 deletions

View File

@ -466,6 +466,9 @@ static LRESULT COMBO_WindowPosChanging(
*/
if (posChanging->cy != newComboHeight)
{
TRACE("posChanging->cy=%d, newComboHeight=%d, oldbot=%d, oldtop=%d\n",
posChanging->cy, newComboHeight, lphc->droppedRect.bottom,
lphc->droppedRect.top);
lphc->droppedRect.bottom = lphc->droppedRect.top + posChanging->cy - newComboHeight;
posChanging->cy = newComboHeight;
@ -1429,6 +1432,17 @@ static LRESULT COMBO_Command( LPHEADCOMBO lphc, WPARAM wParam, HWND hWnd )
CB_NOTIFY( lphc, CBN_SELCHANGE );
/* added due to traces from native */
if( CB_OWNERDRAWN(lphc) )
{
HDC hDC;
hDC = GetDC( hWnd );
CBPaintText( lphc, hDC, lphc->textRect);
ReleaseDC( hWnd, hDC );
}
/* end of added due to traces from native */
/* fall through */
case LBN_SETFOCUS: