- if (GetToolBar()->GetWindowStyleFlag() & wxTB_VERTICAL)
- {
- // Use the 'real' MSW position
- GetToolBar()->SetSize(0, 0, tw, rect.bottom, wxSIZE_NO_ADJUSTMENTS);
- }
- else
- {
- // Use the 'real' MSW position
- GetToolBar()->SetSize(0, 0, rect.right, th, wxSIZE_NO_ADJUSTMENTS);
- }
- }
-}
-
-// propagate our state change to all child frames
-void wxFrame::IconizeChildFrames(bool bIconize)
-{
- wxWindow *child = NULL;
- for ( wxNode *node = GetChildren()->First(); node; node = node->Next() ) {
- wxWindow *win = (wxWindow *)node->Data();
- if ( win->IsKindOf(CLASSINFO(wxFrame)) ) {
- ((wxFrame *)win)->Iconize(bIconize);
- }
- }