wxObject *wxTreeCtrlXmlHandler::DoCreateResource()
{
- wxTreeCtrl *tree = new wxTreeCtrl(m_ParentAsWindow,
+ wxTreeCtrl *tree = new wxTreeCtrl(m_parentAsWindow,
GetID(),
GetPosition(), GetSize(),
GetStyle(),
bool wxTreeCtrlXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("treectrl");
+ return IsOfClass(node, wxT("wxTreeCtrl"));
}