]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/statbmp.h
fixed MSVC6 compiler warning
[wxWidgets.git] / include / wx / univ / statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statbmp.h
3 // Purpose: wxStaticBitmap class for wxUniversal
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 25.08.00
7 // RCS-ID: $Id$
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_UNIV_STATBMP_H_
13 #define _WX_UNIV_STATBMP_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "univstatbmp.h"
17 #endif
18
19 #include "wx/bitmap.h"
20
21 // ----------------------------------------------------------------------------
22 // wxStaticBitmap
23 // ----------------------------------------------------------------------------
24
25 class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase
26 {
27 public:
28 wxStaticBitmap()
29 {
30 }
31
32 wxStaticBitmap(wxWindow *parent,
33 const wxBitmap& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0)
37 {
38 Create(parent, -1, label, pos, size, style);
39 }
40
41 wxStaticBitmap(wxWindow *parent,
42 wxWindowID id,
43 const wxBitmap& label,
44 const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize,
46 long style = 0,
47 const wxString& name = wxStaticBitmapNameStr)
48 {
49 Create(parent, id, label, pos, size, style, name);
50 }
51
52 bool Create(wxWindow *parent,
53 wxWindowID id,
54 const wxBitmap& label,
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize,
57 long style = 0,
58 const wxString& name = wxStaticBitmapNameStr);
59
60 virtual void SetBitmap(const wxBitmap& bitmap);
61 virtual void SetIcon(const wxIcon& icon);
62 virtual wxBitmap GetBitmap() const { return m_bitmap; }
63
64 wxIcon GetIcon() const;
65
66 virtual bool HasTransparentBackground() { return TRUE; }
67
68 private:
69 virtual void DoDraw(wxControlRenderer *renderer);
70
71 // the bitmap which we show
72 wxBitmap m_bitmap;
73
74 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
75 };
76
77 #endif // _WX_UNIV_STATBMP_H_