Only draw the padding area of the combo box, don't erase the combo
selection text.
This commit is contained in:
parent
764a371738
commit
75194d2853
@ -1013,14 +1013,11 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
|
|||||||
/* paint the edit control padding area */
|
/* paint the edit control padding area */
|
||||||
if (CB_GETTYPE(lphc) != CBS_DROPDOWNLIST)
|
if (CB_GETTYPE(lphc) != CBS_DROPDOWNLIST)
|
||||||
{
|
{
|
||||||
HPEN hPrevPen = SelectObject( hDC, GetSysColorPen(COLOR_WINDOW) );
|
|
||||||
RECT rPadEdit = lphc->textRect;
|
RECT rPadEdit = lphc->textRect;
|
||||||
|
|
||||||
InflateRect(&rPadEdit, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
|
InflateRect(&rPadEdit, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
|
||||||
|
|
||||||
Rectangle( hDC, rPadEdit.left, rPadEdit.top, rPadEdit.right, rPadEdit.bottom);
|
FrameRect( hDC, &rPadEdit, GetSysColorBrush(COLOR_WINDOW) );
|
||||||
|
|
||||||
SelectObject( hDC, hPrevPen );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !(lphc->wState & CBF_EDIT) )
|
if( !(lphc->wState & CBF_EDIT) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user