comctl32/listview: Don't redraw focus rectangle on column scroll.
This commit is contained in:
parent
4a5e23a2f9
commit
e847d7c038
@ -4658,9 +4658,6 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx)
|
|||||||
/* do not update screen if not in report mode */
|
/* do not update screen if not in report mode */
|
||||||
if (!is_redrawing(infoPtr) || (infoPtr->dwStyle & LVS_TYPEMASK) != LVS_REPORT) return;
|
if (!is_redrawing(infoPtr) || (infoPtr->dwStyle & LVS_TYPEMASK) != LVS_REPORT) return;
|
||||||
|
|
||||||
/* if we have a focus, we must first erase the focus rect */
|
|
||||||
if (infoPtr->bFocus) LISTVIEW_ShowFocusRect(infoPtr, FALSE);
|
|
||||||
|
|
||||||
/* Need to reset the item width when inserting a new column */
|
/* Need to reset the item width when inserting a new column */
|
||||||
infoPtr->nItemWidth += dx;
|
infoPtr->nItemWidth += dx;
|
||||||
|
|
||||||
@ -4671,9 +4668,6 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx)
|
|||||||
rcOld = infoPtr->rcList;
|
rcOld = infoPtr->rcList;
|
||||||
rcOld.left = ptOrigin.x + rcCol.left + dx;
|
rcOld.left = ptOrigin.x + rcCol.left + dx;
|
||||||
ScrollWindowEx(infoPtr->hwndSelf, dx, 0, &rcOld, &rcOld, 0, 0, SW_ERASE | SW_INVALIDATE);
|
ScrollWindowEx(infoPtr->hwndSelf, dx, 0, &rcOld, &rcOld, 0, 0, SW_ERASE | SW_INVALIDATE);
|
||||||
|
|
||||||
/* we can restore focus now */
|
|
||||||
if (infoPtr->bFocus) LISTVIEW_ShowFocusRect(infoPtr, TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
|
Loading…
x
Reference in New Issue
Block a user