Commit 627aa4d7 authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

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

a rollup.
parent 313051f9
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment