From ed90b185f26a2c30ee4ff2226c116fdc0095035e Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 30 Apr 2001 18:17:46 +0000 Subject: [PATCH] Draw the padding area of a combo box. --- controls/combo.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/controls/combo.c b/controls/combo.c index 3ab50282941..4e18dd85505 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -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) ) { /*