X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..648db587c45e378a91975154a56fdc1879900b80:/contrib/src/xrc/xh_scwin.cpp diff --git a/contrib/src/xrc/xh_scwin.cpp b/contrib/src/xrc/xh_scwin.cpp index 9aedfefe57..275bafed64 100644 --- a/contrib/src/xrc/xh_scwin.cpp +++ b/contrib/src/xrc/xh_scwin.cpp @@ -7,7 +7,7 @@ // Copyright: (c) 2002 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - + #ifdef __GNUG__ #pragma implementation "xh_scwin.h" #endif @@ -22,9 +22,10 @@ #include "wx/xrc/xh_scwin.h" #include "wx/scrolwin.h" +IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler) -wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler() -: wxXmlResourceHandler() +wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler() +: wxXmlResourceHandler() { XRC_ADD_STYLE(wxHSCROLL); XRC_ADD_STYLE(wxVSCROLL); @@ -32,7 +33,7 @@ wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler() } wxObject *wxScrolledWindowXmlHandler::DoCreateResource() -{ +{ XRC_MAKE_INSTANCE(control, wxScrolledWindow) control->Create(m_parentAsWindow, @@ -42,7 +43,8 @@ wxObject *wxScrolledWindowXmlHandler::DoCreateResource() GetName()); SetupWindow(control); - + CreateChildren(control); + return control; }