Fix of ListView invalidation in LISTVIEW_SetBkColor.

This commit is contained in:
Ondrej Macek 2002-02-19 18:32:12 +00:00 committed by Alexandre Julliard
parent 000e7606ab
commit 13f1fb23fe
1 changed files with 4 additions and 2 deletions

View File

@ -6808,8 +6808,10 @@ static LRESULT LISTVIEW_SetBkColor(HWND hwnd, COLORREF clrBk)
{
LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongW(hwnd, 0);
infoPtr->clrBk = clrBk;
InvalidateRect(hwnd, NULL, TRUE);
if(infoPtr->clrBk!=clrBk){
infoPtr->clrBk = clrBk;
InvalidateRect(hwnd, NULL, TRUE);
}
return TRUE;
}