- ((IsOfClass(parentNode, wxT("wxPanel")) ||
- IsOfClass(parentNode, wxT("wxFrame")) ||
- IsOfClass(parentNode, wxT("wxDialog"))) &&
- parentNode->GetType() == wxXML_ELEMENT_NODE), NULL,
+ (parentNode->GetType() == wxXML_ELEMENT_NODE &&
+ (m_parentAsWindow->IsKindOf(CLASSINFO(wxPanel)) ||
+ m_parentAsWindow->IsKindOf(CLASSINFO(wxFrame)) ||
+ m_parentAsWindow->IsKindOf(CLASSINFO(wxDialog)))
+ ), NULL,