- return ((!m_IsInside && node->GetName() == _T("toolbar")) ||
- (m_IsInside && node->GetName() == _T("tool")) ||
- (m_IsInside && node->GetName() == _T("separator")));
+ return ((!m_IsInside && IsOfClass(node, _T("wxToolBar"))) ||
+ (m_IsInside && IsOfClass(node, _T("tool"))) ||
+ (m_IsInside && IsOfClass(node, _T("separator"))));