Only draw the padding area of the combo box, don't erase the combo

selection text.
oldstable
Mike McCormack 2001-05-09 17:13:41 +00:00 committed by Alexandre Julliard
parent 764a371738
commit 75194d2853
1 changed files with 1 additions and 4 deletions

View File

@ -1013,14 +1013,11 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
/* paint the edit control padding area */
if (CB_GETTYPE(lphc) != CBS_DROPDOWNLIST)
{
HPEN hPrevPen = SelectObject( hDC, GetSysColorPen(COLOR_WINDOW) );
RECT rPadEdit = lphc->textRect;
InflateRect(&rPadEdit, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
Rectangle( hDC, rPadEdit.left, rPadEdit.top, rPadEdit.right, rPadEdit.bottom);
SelectObject( hDC, hPrevPen );
FrameRect( hDC, &rPadEdit, GetSysColorBrush(COLOR_WINDOW) );
}
if( !(lphc->wState & CBF_EDIT) )