Commit 910129fc authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

user32: Let ComboBox edit control handle the redraw even if CBF_NOREDRAW is set.

parent 030803b4
......@@ -703,8 +703,6 @@ static void CBPaintText(
INT id, size = 0;
LPWSTR pText = NULL;
if( lphc->wState & CBF_NOREDRAW ) return;
TRACE("\n");
/* follow Windows combobox that sends a bunch of text
......@@ -733,8 +731,9 @@ static void CBPaintText(
if( lphc->wState & CBF_FOCUSED )
SendMessageW(lphc->hWndEdit, EM_SETSEL, 0, -1);
}
else if( IsWindowVisible( lphc->self )) /* paint text field ourselves */
else if(!(lphc->wState & CBF_NOREDRAW) && IsWindowVisible( lphc->self ))
{
/* paint text field ourselves */
HDC hdc = hdc_paint ? hdc_paint : GetDC(lphc->self);
UINT itemState = ODS_COMBOBOXEDIT;
HFONT hPrevFont = (lphc->hFont) ? SelectObject(hdc, lphc->hFont) : 0;
......
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