]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stbmp.cpp
Add _PTR WX_DECLARE_HASH_SET variants to fix warnings about operator->().
[wxWidgets.git] / src / xrc / xh_stbmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xh_stbmp.cpp
3 // Purpose: XRC resource for wxStaticBitmap
4 // Author: Vaclav Slavik
5 // Created: 2000/04/22
6 // RCS-ID: $Id$
7 // Copyright: (c) 2000 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
13
14 #ifdef __BORLANDC__
15 #pragma hdrstop
16 #endif
17
18 #if wxUSE_XRC && wxUSE_STATBMP
19
20 #include "wx/xrc/xh_stbmp.h"
21
22 #ifndef WX_PRECOMP
23 #include "wx/statbmp.h"
24 #endif
25
26 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler, wxXmlResourceHandler)
27
28 wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
29 :wxXmlResourceHandler()
30 {
31 AddWindowStyles();
32 }
33
34 wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
35 {
36 XRC_MAKE_INSTANCE(bmp, wxStaticBitmap)
37
38 bmp->Create(m_parentAsWindow,
39 GetID(),
40 GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()),
41 GetPosition(), GetSize(),
42 GetStyle(),
43 GetName());
44
45 SetupWindow(bmp);
46
47 return bmp;
48 }
49
50 bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node)
51 {
52 return IsOfClass(node, wxT("wxStaticBitmap"));
53 }
54
55 #endif // wxUSE_XRC && wxUSE_STATBMP