]> git.saurik.com Git - wxWidgets.git/blame - include/wx/statbmp.h
show the taskbar icon even after Explorer restart (patch 723532) + some code cleanup
[wxWidgets.git] / include / wx / statbmp.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/statbmp.h
3// Purpose: wxStaticBitmap class interface
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 25.08.00
7// RCS-ID: $Id$
8// Copyright: (c) 2000 Vadim Zeitlin
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_STATBMP_H_BASE_
13#define _WX_STATBMP_H_BASE_
c801d85f 14
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
1e6feb95
VZ
16 #pragma interface "statbmpbase.h"
17#endif
18
19#if wxUSE_STATBMP
20
21#include "wx/control.h"
22#include "wx/bitmap.h"
23
24class WXDLLEXPORT wxIcon;
25class WXDLLEXPORT wxBitmap;
26
27WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
28
29// a control showing an icon or a bitmap
30class WXDLLEXPORT wxStaticBitmapBase : public wxControl
31{
b698c8e9 32 public:
799ea011 33 virtual ~wxStaticBitmapBase();
b698c8e9 34
1e6feb95
VZ
35 // our interface
36 virtual void SetIcon(const wxIcon& icon) = 0;
37 virtual void SetBitmap(const wxBitmap& bitmap) = 0;
38 virtual wxBitmap GetBitmap() const = 0;
39
40 // overriden base class virtuals
41 virtual bool AcceptsFocus() const { return FALSE; }
42
43protected:
44 virtual wxSize DoGetBestClientSize() const;
45};
46
47#if defined(__WXUNIVERSAL__)
48 #include "wx/univ/statbmp.h"
49#elif defined(__WXMSW__)
50 #include "wx/msw/statbmp.h"
2049ba38 51#elif defined(__WXMOTIF__)
1e6feb95 52 #include "wx/motif/statbmp.h"
2049ba38 53#elif defined(__WXGTK__)
1e6feb95 54 #include "wx/gtk/statbmp.h"
34138703 55#elif defined(__WXMAC__)
1e6feb95 56 #include "wx/mac/statbmp.h"
e64df9bc
DE
57#elif defined(__WXCOCOA__)
58 #include "wx/cocoa/statbmp.h"
1777b9bb 59#elif defined(__WXPM__)
1e6feb95 60 #include "wx/os2/statbmp.h"
c801d85f
KB
61#endif
62
1e6feb95
VZ
63#endif // wxUSE_STATBMP
64
c801d85f 65#endif
34138703 66 // _WX_STATBMP_H_BASE_