void TMarsPresenter::HandleMenuDeactivate(TMenu& theMainMenu) { TMarsPresenter::gToolSubMenuItem->GetOwner()->Orphan(*TMarsPresenter::gToolSubMenuItem); TMarsPresenter::gColorSubMenuItem->GetOwner()->Orphan(*TMarsPresenter::gColorSubMenuItem); TMarsPresenter::gPenSubMenuItem->GetOwner()->Orphan(*TMarsPresenter::gPenSubMenuItem); TMarsPresenter::gTextSubMenuItem->GetOwner()->Orphan(*TMarsPresenter::gTextSubMenuItem); TGUIPresenter::HandleMenuDeactivate(theMainMenu); }