From 762f18d664d3c989719218c0cb97010091bee0af Mon Sep 17 00:00:00 2001 From: NF Stevens Date: Sun, 24 Jan 1999 19:02:16 +0000 Subject: [PATCH] Change SW_??? options on list box scrolling so that they match what Windows does. --- controls/listbox.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controls/listbox.c b/controls/listbox.c index 7b7fd710934..f47b1252f1f 100644 --- a/controls/listbox.c +++ b/controls/listbox.c @@ -243,7 +243,8 @@ static LRESULT LISTBOX_SetTopItem( WND *wnd, LB_DESCR *descr, INT32 index, 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 @@ static LRESULT LISTBOX_SetTopItem( WND *wnd, LB_DESCR *descr, INT32 index, 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 @@ static void LISTBOX_SetHorizontalPos( WND *wnd, LB_DESCR *descr, INT32 pos ) 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 ); }