Change SW_??? options on list box scrolling so that they match what
Windows does.
diff --git a/controls/listbox.c b/controls/listbox.c
index 7b7fd71..f47b125 100644
--- a/controls/listbox.c
+++ b/controls/listbox.c
@@ -243,7 +243,8 @@
INT32 diff = (descr->top_item - index) / descr->page_size * descr->column_width;
if (scroll && (abs(diff) < descr->width))
ScrollWindowEx32( wnd->hwndSelf, diff, 0, NULL, NULL, 0, NULL,
- SW_INVALIDATE | SW_ERASE );
+ SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN );
+
else
scroll = FALSE;
}
@@ -270,7 +271,7 @@
if (abs(diff) < descr->height)
ScrollWindowEx32( wnd->hwndSelf, 0, diff, NULL, NULL, 0, NULL,
- SW_INVALIDATE | SW_ERASE );
+ SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN );
else
scroll = FALSE;
}
@@ -1043,7 +1044,7 @@
LISTBOX_UpdateScroll( wnd, descr );
if (abs(diff) < descr->width)
ScrollWindowEx32( wnd->hwndSelf, diff, 0, NULL, NULL, 0, NULL,
- SW_INVALIDATE | SW_ERASE );
+ SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN );
else
InvalidateRect32( wnd->hwndSelf, NULL, TRUE );
}