X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/792064e93f052115705de2f17c9ac0fe5de4bdb3..45805ba32255e4115b2ddddc15a5db5720ecb7ba:/contrib/src/xml/xh_stbmp.cpp diff --git a/contrib/src/xml/xh_stbmp.cpp b/contrib/src/xml/xh_stbmp.cpp index 8ec8d5553c..699e5339a5 100644 --- a/contrib/src/xml/xh_stbmp.cpp +++ b/contrib/src/xml/xh_stbmp.cpp @@ -25,13 +25,14 @@ wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler() : wxXmlResourceHandler() { + AddWindowStyles(); } wxObject *wxStaticBitmapXmlHandler::DoCreateResource() { 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")); }