]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xh_stbmp.cpp
Clear --> ClearBackground
[wxWidgets.git] / src / xrc / xh_stbmp.cpp
CommitLineData
78d14f80
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: xh_stbmp.cpp
b5d6954b 3// Purpose: XRC resource for wxStaticBitmap
78d14f80
VS
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#ifdef __GNUG__
12#pragma implementation "xh_stbmp.h"
13#endif
14
15// For compilers that support precompilation, includes "wx.h".
16#include "wx/wxprec.h"
17
18#ifdef __BORLANDC__
19 #pragma hdrstop
20#endif
21
22#include "wx/xrc/xh_stbmp.h"
23#include "wx/statbmp.h"
24
854e189f
VS
25IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler, wxXmlResourceHandler)
26
78d14f80
VS
27wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
28: wxXmlResourceHandler()
29{
30 AddWindowStyles();
31}
32
33wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
34{
544fee32 35 XRC_MAKE_INSTANCE(bmp, wxStaticBitmap)
f2588180
VS
36
37 bmp->Create(m_parentAsWindow,
38 GetID(),
db59a97c 39 GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()),
f2588180
VS
40 GetPosition(), GetSize(),
41 GetStyle(),
42 GetName());
43
78d14f80
VS
44 SetupWindow(bmp);
45
46 return bmp;
47}
48
78d14f80
VS
49bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node)
50{
51 return IsOfClass(node, wxT("wxStaticBitmap"));
52}