Alexandre Julliard pushed to branch master at wine / wine
Commits: c3c55afb by Zhiyi Zhang at 2025-06-30T23:18:26+02:00 comctl32/listview: Test WM_PAINT with a subclassed header that paints without validating update regions.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47985
- - - - - 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
- - - - -
2 changed files:
- dlls/comctl32/listview.c - dlls/comctl32/tests/listview.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/a78835d0e2e244f4b8f7f034ae9f0b...