005b97d8
by Zhiyi Zhang at 2025-06-30T23:18:27+02:00
comctl32/listview: Validate header region after painting it.
If the listview header is a subclassed header that doesn't validate update regions when painting
itself, for example, it paints without calling BeginPaint(), then after calling UpdateWindow() to
paint the header, the update region for the header area is still there. Thus, the BeginPaint() call
for the listview will end up sending a WM_ERASEBKGND to fill the header area, overwriting the
content the subclassed header just painted. Tests show that header area should be validated even
though the subclassed header doesn't do anything in its WM_PAINT handler.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47985