if (do_refresh && !noRefresh)
m_targetWindow->Refresh(TRUE, GetScrollRect());
- // TODO: check if we can use AdjustScrollbars always.
-#ifdef __WXUNIVERSAL__
- AdjustScrollbars();
-#else
- // This is also done by AdjustScrollbars, above
+#ifndef __WXUNIVERSAL__
+ // If the target is not the same as the window with the scrollbars,
+ // then we need to update the scrollbars here, since they won't have
+ // been updated by SetVirtualSize().
+ if ( m_targetWindow != m_win )
+#endif // !__WXUNIVERSAL__
+ {
+ AdjustScrollbars();
+ }
+#ifndef __WXUNIVERSAL__
+ else
+ {
+ // otherwise this has been done by AdjustScrollbars, above
#ifdef __WXMAC__
- m_targetWindow->MacUpdateImmediately() ;
-#endif
+ m_targetWindow->Update() ;
#endif
+ }
+#endif // !__WXUNIVERSAL__
}
// ----------------------------------------------------------------------------
}
#ifdef __WXMAC__
- m_targetWindow->MacUpdateImmediately() ;
+ m_targetWindow->Update() ;
#endif
}
void wxScrollHelper::AdjustScrollbars()
{
#ifdef __WXMAC__
- m_targetWindow->MacUpdateImmediately();
+ m_targetWindow->Update();
#endif
int w = 0, h = 0;
}
#ifdef __WXMAC__
- m_targetWindow->MacUpdateImmediately();
+ m_targetWindow->Update();
#endif
}
((y_pos == -1) || (y_pos == m_yScrollPosition))) return;
#ifdef __WXMAC__
- m_targetWindow->MacUpdateImmediately();
+ m_targetWindow->Update();
#endif
int w, h;
}
#ifdef __WXMAC__
- m_targetWindow->MacUpdateImmediately();
+ m_targetWindow->Update();
#endif
}