X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..b1229561e530e829f61887930f2004d9814743b0:/contrib/src/xml/xh_chckb.cpp?ds=sidebyside diff --git a/contrib/src/xml/xh_chckb.cpp b/contrib/src/xml/xh_chckb.cpp index d2d3c15f1a..0351054f8f 100644 --- a/contrib/src/xml/xh_chckb.cpp +++ b/contrib/src/xml/xh_chckb.cpp @@ -27,6 +27,7 @@ wxCheckBoxXmlHandler::wxCheckBoxXmlHandler() : wxXmlResourceHandler() { + AddWindowStyles(); } wxObject *wxCheckBoxXmlHandler::DoCreateResource() @@ -50,7 +51,7 @@ wxObject *wxCheckBoxXmlHandler::DoCreateResource() bool wxCheckBoxXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("checkbox"); + return IsOfClass(node, _T("wxCheckBox")); } #endif