+int wxToolBarBase::GetToolPos(int id) const
+{
+ size_t pos = 0;
+ wxToolBarToolsList::Node *node;
+
+ for ( node = m_tools.GetFirst(); node; node = node->GetNext() )
+ {
+ if ( node->GetData()->GetId() == id )
+ return pos;
+
+ pos++;
+ }
+
+ return wxNOT_FOUND;
+}
+