git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37872
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxPoint pos = event.GetPosition();
wxPoint pos = event.GetPosition();
+ // in non-Univ ports the system manages scrollbars for us
+#ifdef __WXUNIVERSAL__
// scrollbar on which the click occurred
wxWindow *sbar = NULL;
// scrollbar on which the click occurred
wxWindow *sbar = NULL;
+#endif // __WXUNIVERSAL__
wxWindow *win = (wxWindow *)event.GetEventObject();
wxWindow *win = (wxWindow *)event.GetEventObject();
case wxHT_WINDOW_VERT_SCROLLBAR:
sbar = win->GetScrollbar(wxVERTICAL);
break;
case wxHT_WINDOW_VERT_SCROLLBAR:
sbar = win->GetScrollbar(wxVERTICAL);
break;
+#endif // __WXUNIVERSAL__
default:
// forgot to update the switch after adding a new hit test code?
default:
// forgot to update the switch after adding a new hit test code?
if ( sbar )
{
// translate the event coordinates to the scrollbar ones
if ( sbar )
{
// translate the event coordinates to the scrollbar ones
(void)sbar->GetEventHandler()->ProcessEvent(event2);
}
(void)sbar->GetEventHandler()->ProcessEvent(event2);
}
+#endif // __WXUNIVERSAL__
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------