X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..4b7ded8bad3a45ea4838e6d3f5d1957a134050ec:/contrib/src/xrc/xh_chckb.cpp?ds=sidebyside diff --git a/contrib/src/xrc/xh_chckb.cpp b/contrib/src/xrc/xh_chckb.cpp index 35086f42b3..242a33645b 100644 --- a/contrib/src/xrc/xh_chckb.cpp +++ b/contrib/src/xrc/xh_chckb.cpp @@ -7,7 +7,7 @@ // Copyright: (c) 2000 Bob Mitchell and Verant Interactive // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - + #ifdef __GNUG__ #pragma implementation "xh_chckb.h" #endif @@ -24,14 +24,16 @@ #if wxUSE_CHECKBOX -wxCheckBoxXmlHandler::wxCheckBoxXmlHandler() -: wxXmlResourceHandler() +IMPLEMENT_DYNAMIC_CLASS(wxCheckBoxXmlHandler, wxXmlResourceHandler) + +wxCheckBoxXmlHandler::wxCheckBoxXmlHandler() +: wxXmlResourceHandler() { AddWindowStyles(); } wxObject *wxCheckBoxXmlHandler::DoCreateResource() -{ +{ XRC_MAKE_INSTANCE(control, wxCheckBox) control->Create(m_parentAsWindow, @@ -44,7 +46,7 @@ wxObject *wxCheckBoxXmlHandler::DoCreateResource() control->SetValue(GetBool( wxT("checked"))); SetupWindow(control); - + return control; }