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