]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_scwin.cpp
added wxXRC_NO_RELOADING
[wxWidgets.git] / contrib / src / xrc / xh_scwin.cpp
index 9aedfefe5789eb512b16a2a1899cd09d3d589d9d..275bafed6433295e402d898eba79fd8e77e3f7ff 100644 (file)
@@ -7,7 +7,7 @@
 // Copyright:   (c) 2002 Vaclav Slavik
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
+
 #ifdef __GNUG__
 #pragma implementation "xh_scwin.h"
 #endif
 #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;
 }