]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/winuniv.cpp
added virtual listctrl support
[wxWidgets.git] / src / univ / winuniv.cpp
index 80eb9968e10556421fe35a23bc6fc6011ff41fff..b3d73e3ed4fc7ce57fe30fbe80205608a7cc9ff0 100644 (file)
@@ -482,6 +482,15 @@ wxPoint wxWindow::GetClientAreaOrigin() const
 
 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);