Commit 8ac1acbb authored by James Abbatiello's avatar James Abbatiello Committed by Alexandre Julliard

Ownerdrawn combo boxes should use ODS_COMBOBOXEDIT in the itemState.

parent e13633b9
......@@ -770,7 +770,7 @@ static void CBPaintText(
}
else /* paint text field ourselves */
{
UINT itemState;
UINT itemState = ODS_COMBOBOXEDIT;
HFONT hPrevFont = (lphc->hFont) ? SelectObject(hdc, lphc->hFont) : 0;
/*
......@@ -786,10 +786,8 @@ static void CBPaintText(
FillRect( hdc, &rectEdit, GetSysColorBrush(COLOR_HIGHLIGHT) );
SetBkColor( hdc, GetSysColor( COLOR_HIGHLIGHT ) );
SetTextColor( hdc, GetSysColor( COLOR_HIGHLIGHTTEXT ) );
itemState = ODS_SELECTED | ODS_FOCUS;
itemState |= ODS_SELECTED | ODS_FOCUS;
}
else
itemState = 0;
if( CB_OWNERDRAWN(lphc) )
{
......
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