commit | d054b4123c4999da08935e9d3c16685670e36e11 | [log] [tgz] |
---|---|---|
author | Patrik Stridvall <ps@leissner.se> | Sat Oct 24 13:06:16 1998 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sat Oct 24 13:06:16 1998 +0000 |
tree | b59ee4fb7918273331cc9b84f6a50d03d13f3b59 | |
parent | 0913cdf00f0a834ff45945d9236a0bb0342b1527 [diff] |
Check if scrollbar and parent are visible before redraw.
diff --git a/controls/scroll.c b/controls/scroll.c index fb31e74..f824cdd 100644 --- a/controls/scroll.c +++ b/controls/scroll.c
@@ -565,6 +565,7 @@ if (!wndPtr || !infoPtr || ((nBar == SB_VERT) && !(wndPtr->dwStyle & WS_VSCROLL)) || ((nBar == SB_HORZ) && !(wndPtr->dwStyle & WS_HSCROLL))) return; + if (!WIN_IsWindowDrawable( wndPtr, FALSE )) return; vertical = SCROLL_GetScrollBarRect( hwnd, nBar, &rect, &arrowSize, &thumbSize, &thumbPos );