// Modified by:
// Created: 06.08.00
// RCS-ID: $Id$
-// Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
+// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////////
void wxWindow::DoGetClientSize(int *width, int *height) const
{
+ // if it is a native window, we assume it handles the scrollbars itself
+ // too - and if it doesn't, there is not much we can do
+ if ( !m_renderer )
+ {
+ wxWindowNative::DoGetClientSize(width, height);
+
+ return;
+ }
+
int w, h;
wxWindowNative::DoGetClientSize(&w, &h);