// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "spinbutt.h"
#pragma implementation "spinbuttbase.h"
#endif
-#include "wx/defs.h"
+#include "wx/wxprec.h"
#if wxUSE_SPINBTN
IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
#endif
-extern ControlActionUPP wxMacLiveScrollbarActionUPP ;
-
wxSpinButton::wxSpinButton()
: wxSpinButtonBase()
{
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
- m_peer = new wxMacControl() ;
+ m_peer = new wxMacControl(this) ;
verify_noerr ( CreateLittleArrowsControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , 0 , m_min , m_max , 1 ,
m_peer->GetControlRefAddr() ) );
- m_peer->SetActionProc( wxMacLiveScrollbarActionUPP ) ;
+ m_peer->SetActionProc( GetwxMacLiveScrollbarActionProc() ) ;
MacPostControlCreate(pos,size) ;
return true;