-#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__
- wxScrollBar *sb = wxDynamicCast( child , wxScrollBar ) ;
- if ( sb == NULL || !m_winParent->MacIsWindowScrollbar( sb ) )
- hasRealChildren = true ;
- if ( sb && m_winParent->MacIsWindowScrollbar( sb ) )
- continue;
-#endif
- if ( child->AcceptsFocus() )
- {
- return true;
- }
- }