]>
git.saurik.com Git - wxWidgets.git/blob - contrib/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 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_stbmp.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xrc/xh_stbmp.h"
23 #include "wx/statbmp.h"
25 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
26 : wxXmlResourceHandler()
31 wxObject
*wxStaticBitmapXmlHandler::DoCreateResource()
33 wxStaticBitmap
*bmp
= wxStaticCast(m_instance
, wxStaticBitmap
);
36 bmp
= new wxStaticBitmap
;
38 bmp
->Create(m_parentAsWindow
,
40 GetBitmap(wxT("bitmap"), GetSize()),
41 GetPosition(), GetSize(),
52 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode
*node
)
54 return IsOfClass(node
, wxT("wxStaticBitmap"));