// // Returns the visibility of the specified toolbar // bool ToolManager::IsVisible( int type ) { ToolBar *t = mBars[ type ]; return t->IsVisible(); // If toolbar is floating if( !t->IsDocked() ) { // Must return state of floater window return t->GetParent()->IsShown(); } // Return state of docked toolbar return t->IsShown(); }