From a8aa5e4f636def3b654bc0cbfcd4816e0e02355e Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sun, 4 Jul 1999 12:48:38 +0000 Subject: [PATCH] Fixed check for whether to call SetWindowPos when showing a window scroll bar. --- controls/scroll.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/controls/scroll.c b/controls/scroll.c index 59c6914fa59..f8731e43ac2 100644 --- a/controls/scroll.c +++ b/controls/scroll.c @@ -1476,7 +1476,10 @@ BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, fShowH = (wndPtr->dwStyle & WS_HSCROLL); wndPtr->dwStyle &= ~WS_HSCROLL; } - if( nBar == SB_HORZ ) break; + if( nBar == SB_HORZ ) { + fShowV = FALSE; + break; + } /* fall through */ case SB_VERT: @@ -1490,6 +1493,8 @@ BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, fShowV = (wndPtr->dwStyle & WS_VSCROLL); wndPtr->dwStyle &= ~WS_VSCROLL; } + if ( nBar == SB_VERT ) + fShowH = FALSE; break; default: