comctl32/listview: Update focus rectangle properly.

This commit is contained in:
Nikolay Sivov 2009-05-21 15:55:47 +04:00 committed by Alexandre Julliard
parent ed09de1e6f
commit 1394c6eee3
1 changed files with 2 additions and 1 deletions

View File

@ -3974,7 +3974,8 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
if (nmlvcd.clrTextBk != CLR_NONE) if (nmlvcd.clrTextBk != CLR_NONE)
ExtTextOutW(hdc, rcSelect.left, rcSelect.top, ETO_OPAQUE, &rcSelect, 0, 0, 0); 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 */ /* figure out the text drawing flags */