X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5b208a1796ecf1b9ab267d200705b4f3b4d10e3..7d6a4d96961eac84d05db8bb24c64d39003f6e54:/src/osx/bmpbuttn_osx.cpp?ds=sidebyside diff --git a/src/osx/bmpbuttn_osx.cpp b/src/osx/bmpbuttn_osx.cpp index 2384340ae2..a2c2eadfee 100644 --- a/src/osx/bmpbuttn_osx.cpp +++ b/src/osx/bmpbuttn_osx.cpp @@ -20,9 +20,6 @@ #include "wx/dcmemory.h" #endif -IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton) - - #include "wx/osx/private.h" //--------------------------------------------------------------------------- @@ -36,8 +33,8 @@ bool wxBitmapButton::Create( wxWindow *parent, const wxValidator& validator, const wxString& name ) { - m_macIsUserPane = false; - + DontCreatePeer(); + if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style, validator, name) ) return false; @@ -55,7 +52,7 @@ bool wxBitmapButton::Create( wxWindow *parent, m_bitmaps[State_Normal] = bitmap; - m_peer = wxWidgetImpl::CreateBitmapButton( this, parent, id, bitmap, pos, size, style, GetExtraStyle() ); + SetPeer(wxWidgetImpl::CreateBitmapButton( this, parent, id, bitmap, pos, size, style, GetExtraStyle() )); MacPostControlCreate( pos, size );