]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_scwin.cpp
disable the first top level parent, not the topmost top level parent
[wxWidgets.git] / contrib / src / xrc / xh_scwin.cpp
index 9aedfefe5789eb512b16a2a1899cd09d3d589d9d..2ac6d4face3cda2a41cfc4f62ef9c8fc617892f7 100644 (file)
@@ -22,6 +22,7 @@
 #include "wx/xrc/xh_scwin.h"
 #include "wx/scrolwin.h"
 
+IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
 
 wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler() 
 : wxXmlResourceHandler() 
@@ -42,6 +43,7 @@ wxObject *wxScrolledWindowXmlHandler::DoCreateResource()
                     GetName());
 
     SetupWindow(control);
+    CreateChildren(control);
     
     return control;
 }