Native version seems to always re-draw the selected text at the end of
a rollup.
This commit is contained in:
parent
313051f9d6
commit
627aa4d772
|
@ -466,6 +466,9 @@ static LRESULT COMBO_WindowPosChanging(
|
||||||
*/
|
*/
|
||||||
if (posChanging->cy != newComboHeight)
|
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;
|
lphc->droppedRect.bottom = lphc->droppedRect.top + posChanging->cy - newComboHeight;
|
||||||
|
|
||||||
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 );
|
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 */
|
/* fall through */
|
||||||
|
|
||||||
case LBN_SETFOCUS:
|
case LBN_SETFOCUS:
|
||||||
|
|
Loading…
Reference in New Issue