]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/xml/xh_stbmp.cpp
Add quantize and treebase
[wxWidgets.git] / contrib / src / xml / xh_stbmp.cpp
CommitLineData
56d2f750
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: xh_stbmp.cpp
3// Purpose: XML 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#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/xml/xh_stbmp.h"
23#include "wx/statbmp.h"
56d2f750
VS
24
25wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
26: wxXmlResourceHandler()
27{
28}
29
30wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
31{
56d2f750
VS
32 wxStaticBitmap *bmp = new wxStaticBitmap(m_ParentAsWindow,
33 GetID(),
792064e9 34 GetBitmap(_T("bitmap"), GetSize()),
56d2f750
VS
35 GetPosition(), GetSize(),
36 GetStyle(),
37 GetName()
38 );
39 SetupWindow(bmp);
40
41 return bmp;
42}
43
44
45
46bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node)
47{
48 return node->GetName() == _T("staticbitmap");
49}
50
51