http://bugs.winehq.org/show_bug.cgi?id=10544
Summary: treeview scrolling on collapsing is broken on windows Product: Wine Version: unspecified Platform: PC-x86-64 OS/Version: Windows XP Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: timo.kreuzer@web.de
when using comctl32.dll on windows and use for example regedit with it, then collapsing of treeview items messes up the treeview. This is due to not using any ClipRegion in ScrollWindowEx when collapsing. Maybe there's also a bug in ScrollWindowEx.
To fix, simply replace
ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, NULL, NULL, NULL, SW_ERASE | SW_INVALIDATE);
with
ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, &scrollRect, NULL, NULL, SW_ERASE | SW_INVALIDATE);
in TREEVIEW_Collapse()