]>
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 
   7 // Copyright:   (c) 2000 Vaclav Slavik 
   8 // Licence:     wxWindows licence 
   9 ///////////////////////////////////////////////////////////////////////////// 
  11 // For compilers that support precompilation, includes "wx.h". 
  12 #include "wx/wxprec.h" 
  18 #if wxUSE_XRC && wxUSE_STATBMP 
  20 #include "wx/xrc/xh_stbmp.h" 
  23     #include "wx/statbmp.h" 
  26 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler
, wxXmlResourceHandler
) 
  28 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler() 
  29                          :wxXmlResourceHandler() 
  34 wxObject 
*wxStaticBitmapXmlHandler::DoCreateResource() 
  36     XRC_MAKE_INSTANCE(bmp
, wxStaticBitmap
) 
  38     bmp
->Create(m_parentAsWindow
, 
  40                 GetBitmap(wxT("bitmap"), wxART_OTHER
, GetSize()), 
  41                 GetPosition(), GetSize(), 
  50 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode 
*node
) 
  52     return IsOfClass(node
, wxT("wxStaticBitmap")); 
  55 #endif // wxUSE_XRC && wxUSE_STATBMP