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