Scroll off-screen controls when scroll rectangle is NULL.

This commit is contained in:
Ove Kaaven 2000-05-11 21:41:15 +00:00 committed by Alexandre Julliard
parent da2cd4d070
commit fc63491d6c

View file

@ -318,7 +318,7 @@ rc.left, rc.top, rc.right, rc.bottom, (UINT16)flags );
for( w =WIN_LockWndPtr(wnd->child); w; WIN_UpdateWndPtr(&w, w->next))
{
CONV_RECT16TO32( &w->rectWindow, &r );
if( IntersectRect(&r, &r, &rc) )
if( !rect || IntersectRect(&r, &r, &rc) )
SetWindowPos(w->hwndSelf, 0, w->rectWindow.left + dx,
w->rectWindow.top + dy, 0,0, SWP_NOZORDER |
SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOREDRAW |