Commit a8aa5e4f authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Fixed check for whether to call SetWindowPos when showing a window

scroll bar.
parent 6230a87f
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment