bool wxBitmapXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("bitmap");
+ return IsOfClass(node, _T("wxBitmap"));
}
bool wxIconXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("icon");
+ return IsOfClass(node, _T("wxIcon"));
}