Remove redundant sending of WM_DRAWITEM message to ownerdrawn
combobox.
This commit is contained in:
parent
4f34b18929
commit
d62c3f16ac
|
@ -748,6 +748,8 @@ static void CBPaintText(
|
||||||
|
|
||||||
if( lphc->wState & CBF_NOREDRAW ) return;
|
if( lphc->wState & CBF_NOREDRAW ) return;
|
||||||
|
|
||||||
|
TRACE("\n");
|
||||||
|
|
||||||
/* follow Windows combobox that sends a bunch of text
|
/* follow Windows combobox that sends a bunch of text
|
||||||
* inquiries to its listbox while processing WM_PAINT. */
|
* inquiries to its listbox while processing WM_PAINT. */
|
||||||
|
|
||||||
|
@ -981,6 +983,7 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
|
||||||
hDC = (hParamDC) ? hParamDC
|
hDC = (hParamDC) ? hParamDC
|
||||||
: BeginPaint( lphc->self->hwndSelf, &ps);
|
: BeginPaint( lphc->self->hwndSelf, &ps);
|
||||||
|
|
||||||
|
TRACE("hdc=%04x\n", hDC);
|
||||||
|
|
||||||
if( hDC && !(lphc->wState & CBF_NOREDRAW) )
|
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 );
|
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