comctl32/listview: Update focus rectangle properly.
This commit is contained in:
parent
ed09de1e6f
commit
1394c6eee3
|
@ -3974,7 +3974,8 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
|
|||
|
||||
if (nmlvcd.clrTextBk != CLR_NONE)
|
||||
ExtTextOutW(hdc, rcSelect.left, rcSelect.top, ETO_OPAQUE, &rcSelect, 0, 0, 0);
|
||||
if(lprcFocus) *lprcFocus = rcSelect;
|
||||
/* store new focus rectangle */
|
||||
if (infoPtr->nFocusedItem == nItem) infoPtr->rcFocus = rcSelect;
|
||||
}
|
||||
|
||||
/* figure out the text drawing flags */
|
||||
|
|
Loading…
Reference in New Issue