Draw the padding area of a combo box.

oldstable
Mike McCormack 2001-04-30 18:17:46 +00:00 committed by Alexandre Julliard
parent 2ce7bc84ed
commit ed90b185f2
1 changed files with 13 additions and 0 deletions

View File

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