Skip to content
Snippets Groups Projects
Commit 75194d28 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

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

selection text.
parent 764a3717
No related branches found
No related tags found
No related merge requests found
......@@ -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) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment