-#ifdef __WXMAC__
- // wxMac has eventually the two scrollbars as children, they don't count
- // as real children in the algorithm mentioned above
- bool hasRealChildren = false ;
-#endif
-
- while ( node )
- {
- wxWindow *child = node->GetData();
- node = node->GetNext();
-
-#ifdef __WXMAC__
- if ( m_winParent->MacIsWindowScrollbar( child ) )
- continue;
- hasRealChildren = true ;
-#endif
- if ( child->AcceptsFocus() )
- {
- return true;
- }
- }