#include "wx/wxprec.h"
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/settings.h"
#endif
-#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
return m_peer->GetValue();
}
-void wxScrollBar::SetScrollbar( int position, int thumbSize, int range, int pageSize, bool refresh )
+void wxScrollBar::SetScrollbar( int position,
+ int thumbSize,
+ int range,
+ int pageSize,
+ bool WXUNUSED(refresh) )
{
m_pageSize = pageSize;
m_viewSize = thumbSize;
ProcessCommand( event );
}
-void wxScrollBar::MacHandleControlClick( WXWidget control, wxInt16 controlpart, bool mouseStillDown )
+void wxScrollBar::MacHandleControlClick( WXWidget WXUNUSED(control), wxInt16 controlpart, bool mouseStillDown )
{
int position = m_peer->GetValue();
int minPos = m_peer->GetMinimum();
// this is hardcoded
window->MacOnScroll( event );
else
- GetEventHandler()->ProcessEvent( event );
+ HandleWindowEvent( event );
}
-wxInt32 wxScrollBar::MacControlHit( WXEVENTHANDLERREF handler, WXEVENTREF mevent )
+wxInt32 wxScrollBar::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler), WXEVENTREF mevent )
{
int position = m_peer->GetValue();
int minPos = m_peer->GetMinimum();
// this is hardcoded
window->MacOnScroll( event );
else
- GetEventHandler()->ProcessEvent( event );
+ HandleWindowEvent( event );
return noErr;
}