]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stbmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxStaticBitmap
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2000 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
12 #pragma implementation "xh_stbmp.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
24 #include "wx/xrc/xh_stbmp.h"
25 #include "wx/statbmp.h"
27 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler
, wxXmlResourceHandler
)
29 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
30 : wxXmlResourceHandler()
35 wxObject
*wxStaticBitmapXmlHandler::DoCreateResource()
37 XRC_MAKE_INSTANCE(bmp
, wxStaticBitmap
)
39 bmp
->Create(m_parentAsWindow
,
41 GetBitmap(wxT("bitmap"), wxART_OTHER
, GetSize()),
42 GetPosition(), GetSize(),
51 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode
*node
)
53 return IsOfClass(node
, wxT("wxStaticBitmap"));