]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_statbar.cpp
Upport scrolling changes and mouse wheel changes.
[wxWidgets.git] / src / xrc / xh_statbar.cpp
index e634adc9915f5adde4da006fe236df90ee8593c0..c982570deddcf91f983b446124b71f18c2fa157c 100644 (file)
     #include "wx/string.h"
     #include "wx/log.h"
     #include "wx/frame.h"
+    #include "wx/statusbr.h"
 #endif
 
-#include "wx/statusbr.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXmlHandler, wxXmlResourceHandler)
 
-wxStatusBarXmlHandler::wxStatusBarXmlHandler() :
-        wxXmlResourceHandler()
+wxStatusBarXmlHandler::wxStatusBarXmlHandler()
+                      :wxXmlResourceHandler()
 {
     XRC_ADD_STYLE(wxST_SIZEGRIP);
     AddWindowStyles();
@@ -89,6 +88,8 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
         delete [] style;
     }
 
+    CreateChildren(statbar);
+
     if (m_parentAsWindow)
     {
         wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);