X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..29fd317b4b5f7e9020ebb6f1187c5f8b3c28d5a3:/contrib/src/xml/xh_slidr.cpp diff --git a/contrib/src/xml/xh_slidr.cpp b/contrib/src/xml/xh_slidr.cpp index 38847f7d21..ec99ffb413 100644 --- a/contrib/src/xml/xh_slidr.cpp +++ b/contrib/src/xml/xh_slidr.cpp @@ -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")); }