X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71908213057690d5452f72b2b9c8e62b53357170..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/include/wx/univ/statbmp.h?ds=sidebyside diff --git a/include/wx/univ/statbmp.h b/include/wx/univ/statbmp.h index 940827f806..b449ce6ff4 100644 --- a/include/wx/univ/statbmp.h +++ b/include/wx/univ/statbmp.h @@ -12,8 +12,8 @@ #ifndef _WX_UNIV_STATBMP_H_ #define _WX_UNIV_STATBMP_H_ -#ifdef __GNUG__ - #pragma interface "statbmp.h" +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) + #pragma interface "univstatbmp.h" #endif #include "wx/bitmap.h" @@ -22,7 +22,7 @@ // wxStaticBitmap // ---------------------------------------------------------------------------- -class wxStaticBitmap : public wxStaticBitmapBase +class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase { public: wxStaticBitmap() @@ -35,7 +35,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,6 +63,8 @@ public: wxIcon GetIcon() const; + virtual bool HasTransparentBackground() { return true; } + private: virtual void DoDraw(wxControlRenderer *renderer);