X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11b6e0c5333023ce8f27618773ae4fc04f7b617a..b1229561e530e829f61887930f2004d9814743b0:/contrib/src/xml/xh_spin.cpp diff --git a/contrib/src/xml/xh_spin.cpp b/contrib/src/xml/xh_spin.cpp index 9ebd9471ee..24f046fd16 100644 --- a/contrib/src/xml/xh_spin.cpp +++ b/contrib/src/xml/xh_spin.cpp @@ -31,6 +31,7 @@ wxSpinButtonXmlHandler::wxSpinButtonXmlHandler() ADD_STYLE( wxSP_VERTICAL ); ADD_STYLE( wxSP_ARROW_KEYS ); ADD_STYLE( wxSP_WRAP ); + AddWindowStyles(); } wxObject *wxSpinButtonXmlHandler::DoCreateResource() @@ -92,7 +93,7 @@ wxObject *wxSpinCtrlXmlHandler::DoCreateResource() bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("spinctrl"); + return IsOfClass(node, _T("wxSpinCtrl")); } #endif // wxUSE_SPINCTRL