Fix braino in calculation of LVS_LIST origin.

Invalidate the entire window when we are invalidating the list.
This commit is contained in:
Dimitrie O. Paun 2002-10-10 02:56:13 +00:00 committed by Alexandre Julliard
parent 3e7b710446
commit cf4670cba2

View File

@ -734,7 +734,7 @@ static inline LRESULT CallWindowProcT(WNDPROC proc, HWND hwnd, UINT uMsg,
} while (0)
#define LISTVIEW_InvalidateList(infoPtr)\
LISTVIEW_InvalidateRect(infoPtr, &infoPtr->rcList)
LISTVIEW_InvalidateRect(infoPtr, NULL)
static inline BOOL LISTVIEW_GetItemW(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem)
{
@ -5511,19 +5511,14 @@ static BOOL LISTVIEW_GetOrigin(LISTVIEW_INFO *infoPtr, LPPOINT lpptOrigin)
lpptOrigin->x = infoPtr->rcList.left;
lpptOrigin->y = infoPtr->rcList.top;
if (uView == LVS_LIST)
{
nHorzPos *= LISTVIEW_GetCountPerColumn(infoPtr);
nVertPos = 0;
}
nHorzPos *= infoPtr->nItemWidth;
else if (uView == LVS_REPORT)
{
nVertPos *= infoPtr->nItemHeight;
}
lpptOrigin->x -= nHorzPos;
lpptOrigin->y -= nVertPos;
TRACE("(pt=(%ld,%ld))\n", lpptOrigin->x, lpptOrigin->y);
TRACE(" origin=%s\n", debugpoint(lpptOrigin));
return TRUE;
}