]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xml/xh_stbmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XML 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/xml/xh_stbmp.h"
23 #include "wx/statbmp.h"
25 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
26 : wxXmlResourceHandler()
30 wxObject
*wxStaticBitmapXmlHandler::DoCreateResource()
32 wxStaticBitmap
*bmp
= new wxStaticBitmap(m_ParentAsWindow
,
34 GetBitmap(_T("bitmap"), GetSize()),
35 GetPosition(), GetSize(),
46 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode
*node
)
48 return node
->GetName() == _T("staticbitmap");