X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/193e19cfdfc0506d9ddc19b3532d340fd7421bae..7e08bc5acd8ee4e2f0756f50bf98937a118f9951:/include/wx/univ/statbmp.h?ds=sidebyside diff --git a/include/wx/univ/statbmp.h b/include/wx/univ/statbmp.h index fcfdf802ae..2c9e011547 100644 --- a/include/wx/univ/statbmp.h +++ b/include/wx/univ/statbmp.h @@ -12,17 +12,13 @@ #ifndef _WX_UNIV_STATBMP_H_ #define _WX_UNIV_STATBMP_H_ -#ifdef __GNUG__ - #pragma interface "univstatbmp.h" -#endif - #include "wx/bitmap.h" // ---------------------------------------------------------------------------- // wxStaticBitmap // ---------------------------------------------------------------------------- -class wxStaticBitmap : public wxStaticBitmapBase +class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase { public: wxStaticBitmap() @@ -35,7 +31,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0) { - Create(parent, -1, label, pos, size, style); + Create(parent, wxID_ANY, label, pos, size, style); } wxStaticBitmap(wxWindow *parent, @@ -63,11 +59,12 @@ public: wxIcon GetIcon() const; - virtual bool HasTransparentBackground() { return TRUE; } - -private: + virtual bool HasTransparentBackground() { return true; } + +protected: virtual void DoDraw(wxControlRenderer *renderer); +private: // the bitmap which we show wxBitmap m_bitmap;