]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / msw / window.cpp
index 32ce024c386abc833e4b8dc9540714f67da2ece4..34a9c55cc2b064ed1c9d4471af7b745006fd6aeb 100644 (file)
@@ -372,6 +372,15 @@ bool wxWindow::Enable(bool enable)
     if ( hWnd )
         ::EnableWindow(hWnd, (BOOL)enable);
 
     if ( hWnd )
         ::EnableWindow(hWnd, (BOOL)enable);
 
+    wxWindowList::Node *node = GetChildren().GetFirst();
+    while ( node )
+    {
+        wxWindow *child = node->GetData();
+        child->Enable(enable);
+
+        node = node->GetNext();
+    }
+
     return TRUE;
 }
 
     return TRUE;
 }