-static void wxFindDisabledWindows(wxWindowList& winDisabled, wxWindow *win)
-{
- wxWindowList::Node *node;
- for ( node = win->GetChildren().GetFirst(); node; node = node->GetNext() )
- {
- wxWindow *child = node->GetData();
- wxFindDisabledWindows(winDisabled, child);
-
- if ( child->IsEnabled() )
- {
- winDisabled.Append(child);
- child->Disable();
- }
- }
-}
-