Draw the padding area of a combo box.
This commit is contained in:
parent
2ce7bc84ed
commit
ed90b185f2
|
@ -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) )
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue