From 537bcadf550637ab1c3657f1d2cd4e130c11bedd Mon Sep 17 00:00:00 2001 From: Louis Philippe Gagnon Date: Thu, 30 Nov 2000 20:37:29 +0000 Subject: [PATCH] Don't update scrollbars when processing WM_DESTROY. --- controls/listbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls/listbox.c b/controls/listbox.c index 91624bcca59..0959e2af806 100644 --- a/controls/listbox.c +++ b/controls/listbox.c @@ -1620,8 +1620,6 @@ static void LISTBOX_ResetContent( WND *wnd, LB_DESCR *descr ) descr->focus_item = 0; descr->anchor_item = -1; descr->items = NULL; - LISTBOX_UpdateScroll( wnd, descr ); - InvalidateRect( wnd->hwndSelf, NULL, TRUE ); } @@ -2458,6 +2456,8 @@ static inline LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg, case LB_RESETCONTENT16: case LB_RESETCONTENT: LISTBOX_ResetContent( wnd, descr ); + LISTBOX_UpdateScroll( wnd, descr ); + InvalidateRect( wnd->hwndSelf, NULL, TRUE ); return 0; case LB_ADDSTRING16: -- 2.11.4.GIT