Ownerdrawn combo boxes should use ODS_COMBOBOXEDIT in the itemState.

This commit is contained in:
James Abbatiello 2001-02-12 01:17:16 +00:00 committed by Alexandre Julliard
parent e13633b9e5
commit 8ac1acbb1a
1 changed files with 2 additions and 4 deletions

View File

@ -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) )
{