- wxWindow *child = NULL;
- int noChildren = 0;
- for(wxNode *node = GetChildren()->First(); node; node = node->Next())
- {
- wxWindow *win = (wxWindow *)node->Data();
- if (!win->IsKindOf(CLASSINFO(wxFrame)) &&
- !win->IsKindOf(CLASSINFO(wxDialog))
-/* && (win != m_frameMenuBar) &&
- (win != m_frameStatusBar) not in m_children anyway */
- )
+ if ( GetAutoLayout() )
+ Layout();
+ else {
+ // do we have exactly one child?
+ wxWindow *child = NULL;
+ for(wxNode *node = GetChildren()->First(); node; node = node->Next())