wxScrollEvent event(scrollType, this->GetId(), m_thumbPos,
IsVertical() ? wxVERTICAL : wxHORIZONTAL);
event.SetEventObject(this);
- GetParent()->GetEventHandler()->ProcessEvent(event);
+ GetEventHandler()->ProcessEvent(event);
}
else // part of the window
{
#endif // wxUSE_SCROLLBAR
+#if wxUSE_TIMER
+
// ----------------------------------------------------------------------------
// wxScrollTimer
// ----------------------------------------------------------------------------
(void)DoNotify();
}
}
+
+#endif // wxUSE_TIMER