]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_slidr.cpp
test for bug with new wu-ftpd
[wxWidgets.git] / contrib / src / xml / xh_slidr.cpp
index 38847f7d21c43a6cc35e8e61a9b80b4a445c1dc9..ec99ffb413d7c635b1bb898076a06cbbbc96cbe1 100644 (file)
@@ -37,6 +37,7 @@ wxSliderXmlHandler::wxSliderXmlHandler()
     ADD_STYLE( wxSL_BOTTOM );
     ADD_STYLE( wxSL_BOTH );
     ADD_STYLE( wxSL_SELRANGE );
+    AddWindowStyles();
 }
 
 wxObject *wxSliderXmlHandler::DoCreateResource()
@@ -86,7 +87,7 @@ wxObject *wxSliderXmlHandler::DoCreateResource()
 
 bool wxSliderXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("slider");
+    return IsOfClass(node, _T("wxSlider"));
 }