X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..c6151f2a94c8851e712755839106707a863c5449:/include/wx/msw/bmpbuttn.h diff --git a/include/wx/msw/bmpbuttn.h b/include/wx/msw/bmpbuttn.h index fa4233e801..c2ebd22f76 100644 --- a/include/wx/msw/bmpbuttn.h +++ b/include/wx/msw/bmpbuttn.h @@ -48,7 +48,7 @@ public: const wxString& name = wxButtonNameStr); #if WXWIN_COMPATIBILITY - wxBitmap *GetBitmap() const { return (wxBitmap *) & m_bmp; } + wxBitmap *GetBitmap() const { return (wxBitmap *) &GetBitmapLabel(); } #endif // Implementation @@ -59,7 +59,7 @@ public: virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg ); private: - DECLARE_DYNAMIC_CLASS(wxBitmapButton) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton) }; #endif