Commit ed90b185 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Draw the padding area of a combo box.

parent 2ce7bc84
......@@ -1010,6 +1010,19 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
CBPaintButton(lphc, hDC, lphc->buttonRect);
}
/* 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 );
}
if( !(lphc->wState & CBF_EDIT) )
{
/*
......
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