Remove redundant sending of WM_DRAWITEM message to ownerdrawn

combobox.
This commit is contained in:
Dmitry Timoshkov 2001-04-17 17:29:31 +00:00 committed by Alexandre Julliard
parent 4f34b18929
commit d62c3f16ac
1 changed files with 3 additions and 11 deletions

View File

@ -748,6 +748,8 @@ static void CBPaintText(
if( lphc->wState & CBF_NOREDRAW ) return;
TRACE("\n");
/* follow Windows combobox that sends a bunch of text
* inquiries to its listbox while processing WM_PAINT. */
@ -981,6 +983,7 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
hDC = (hParamDC) ? hParamDC
: BeginPaint( lphc->self->hwndSelf, &ps);
TRACE("hdc=%04x\n", hDC);
if( hDC && !(lphc->wState & CBF_NOREDRAW) )
{
@ -1430,17 +1433,6 @@ 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: