Fixed check for whether to call SetWindowPos when showing a window

scroll bar.
This commit is contained in:
Ove Kaaven 1999-07-04 12:48:38 +00:00 committed by Alexandre Julliard
parent 6230a87fb8
commit a8aa5e4f63
1 changed files with 6 additions and 1 deletions

View File

@ -1476,7 +1476,10 @@ BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar,
fShowH = (wndPtr->dwStyle & WS_HSCROLL); fShowH = (wndPtr->dwStyle & WS_HSCROLL);
wndPtr->dwStyle &= ~WS_HSCROLL; wndPtr->dwStyle &= ~WS_HSCROLL;
} }
if( nBar == SB_HORZ ) break; if( nBar == SB_HORZ ) {
fShowV = FALSE;
break;
}
/* fall through */ /* fall through */
case SB_VERT: case SB_VERT:
@ -1490,6 +1493,8 @@ BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar,
fShowV = (wndPtr->dwStyle & WS_VSCROLL); fShowV = (wndPtr->dwStyle & WS_VSCROLL);
wndPtr->dwStyle &= ~WS_VSCROLL; wndPtr->dwStyle &= ~WS_VSCROLL;
} }
if ( nBar == SB_VERT )
fShowH = FALSE;
break; break;
default: default: