]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_tree.cpp
added 'name' to wxEditableListBox ctor
[wxWidgets.git] / contrib / src / xml / xh_tree.cpp
index b10dc6ce94e88354ef0244ec9f02af4ee6f06646..b1f5d3625a10a2c982388d70cadb6d47e9a2ad31 100644 (file)
@@ -35,7 +35,7 @@ wxTreeCtrlXmlHandler::wxTreeCtrlXmlHandler()
 
 wxObject *wxTreeCtrlXmlHandler::DoCreateResource()
 { 
-    wxTreeCtrl *tree = new wxTreeCtrl(m_ParentAsWindow,
+    wxTreeCtrl *tree = new wxTreeCtrl(m_parentAsWindow,
                                     GetID(),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
@@ -51,7 +51,7 @@ wxObject *wxTreeCtrlXmlHandler::DoCreateResource()
 
 bool wxTreeCtrlXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("treectrl");
+    return IsOfClass(node, wxT("wxTreeCtrl"));
 }