]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_stbmp.cpp
wxScrolledWindow can have children, too
[wxWidgets.git] / contrib / src / xrc / xh_stbmp.cpp
index 95edf5085317b420e6716672749c7a3d82bc4808..04eb5096df7c3228b36d60b1d082f97e2f8fb707 100644 (file)
@@ -22,6 +22,8 @@
 #include "wx/xrc/xh_stbmp.h"
 #include "wx/statbmp.h"
 
+IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler, wxXmlResourceHandler)
+
 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler() 
 : wxXmlResourceHandler() 
 {
@@ -34,7 +36,7 @@ wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
 
     bmp->Create(m_parentAsWindow,
                 GetID(),
-                GetBitmap(wxT("bitmap"), GetSize()),
+                GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()),
                 GetPosition(), GetSize(),
                 GetStyle(),
                 GetName());