]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_stbmp.cpp
added 'name' to wxEditableListBox ctor
[wxWidgets.git] / contrib / src / xml / xh_stbmp.cpp
index 8ec8d5553cd4b9726d2b57593965c17306e2e239..2d5b3c94721a58dfde1a0036ab549d190667cb9e 100644 (file)
 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler() 
 : wxXmlResourceHandler() 
 {
+    AddWindowStyles();
 }
 
 wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
 { 
-    wxStaticBitmap *bmp = new wxStaticBitmap(m_ParentAsWindow,
+    wxStaticBitmap *bmp = new wxStaticBitmap(m_parentAsWindow,
                                     GetID(),
-                                    GetBitmap(_T("bitmap"), GetSize()),
+                                    GetBitmap(wxT("bitmap"), GetSize()),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     GetName()
@@ -45,7 +46,7 @@ wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
 
 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("staticbitmap");
+    return IsOfClass(node, wxT("wxStaticBitmap"));
 }