Commit d62c3f16 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Remove redundant sending of WM_DRAWITEM message to ownerdrawn

combobox.
parent 4f34b189
......@@ -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:
......
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