In function setcontrolviewdomain, if only the scrollbars need to be updated, update the whole domain if the update region of the window is not empty, because otherwise the call back that updates the view domain is lost on windows, because it happens during a RedrawWindow call to redraw the scrollbars, that cannot handle call backs.