Fix of ListView invalidation in LISTVIEW_SetBkColor.
This commit is contained in:
parent
000e7606ab
commit
13f1fb23fe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue