+wxControl *wxToolBarBase::FindControl( int id )
+{
+ for ( wxToolBarToolsList::Node* node = m_tools.GetFirst();
+ node;
+ node = node->GetNext() )
+ {
+ wxControl *control = node->GetData()->GetControl();
+
+ if (control)
+ {
+ if (control->GetId() == id)
+ return control;
+ }
+ }
+
+ return NULL;
+}
+