We can avoid flicker on column resize only if it's left align.
This commit is contained in:
parent
fa5b29acd3
commit
221398344e
|
@ -7665,8 +7665,12 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, LPNMHEADERW l
|
|||
LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx);
|
||||
if (uView == LVS_REPORT && is_redrawing(infoPtr))
|
||||
{
|
||||
rcCol.right = min (rcCol.right, lpColumnInfo->rcHeader.right);
|
||||
rcCol.left = max (rcCol.left, rcCol.right - 3 * infoPtr->ntmAveCharWidth);
|
||||
/* this trick works for left aligned columns only */
|
||||
if ((lpColumnInfo->fmt & LVCFMT_JUSTIFYMASK) == LVCFMT_LEFT)
|
||||
{
|
||||
rcCol.right = min (rcCol.right, lpColumnInfo->rcHeader.right);
|
||||
rcCol.left = max (rcCol.left, rcCol.right - 3 * infoPtr->ntmAveCharWidth);
|
||||
}
|
||||
rcCol.top = infoPtr->rcList.top;
|
||||
rcCol.bottom = infoPtr->rcList.bottom;
|
||||
LISTVIEW_InvalidateRect(infoPtr, &rcCol);
|
||||
|
|
Loading…
Reference in New Issue