]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stbmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xh_stbmp.cpp
3 // Purpose: XRC resource for wxStaticBitmap
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
17 #if wxUSE_XRC && wxUSE_STATBMP
19 #include "wx/xrc/xh_stbmp.h"
22 #include "wx/statbmp.h"
25 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler
, wxXmlResourceHandler
)
27 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
28 :wxXmlResourceHandler()
33 wxObject
*wxStaticBitmapXmlHandler::DoCreateResource()
35 XRC_MAKE_INSTANCE(bmp
, wxStaticBitmap
)
37 bmp
->Create(m_parentAsWindow
,
39 GetBitmap(wxT("bitmap"), wxART_OTHER
, GetSize()),
40 GetPosition(), GetSize(),
49 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode
*node
)
51 return IsOfClass(node
, wxT("wxStaticBitmap"));
54 #endif // wxUSE_XRC && wxUSE_STATBMP