X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01526d4f6cd7dd242e561aa24066f8ca0290a9ac..34097680c05edc672b61dd413022cd8b9ad0294f:/src/palmos/slider.cpp?ds=sidebyside diff --git a/src/palmos/slider.cpp b/src/palmos/slider.cpp index 3776e7de96..49d00f8bee 100644 --- a/src/palmos/slider.cpp +++ b/src/palmos/slider.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "slider.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -30,6 +26,9 @@ #include "wx/toplevel.h" +#include +#include + #if wxUSE_EXTENDED_RTTI WX_DEFINE_FLAGS( wxSliderStyle ) @@ -123,7 +122,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, if(!wxControl::Create(parent, id, pos, size, style, validator, name)) return false; - FormType* form = GetParentForm(); + FormType* form = (FormType*)GetParentForm(); if(form==NULL) return false; @@ -324,10 +323,10 @@ bool wxSlider::SendUpdatedEvent() return handled; } -bool wxSlider::SendScrollEvent(EventType* event) +bool wxSlider::SendScrollEvent(WXEVENTPTR event) { - wxEventType scrollEvent; - int newPos = ValueInvertOrNot(event->data.ctlRepeat.value); + const EventType* palmEvent = (EventType*)event; + int newPos = ValueInvertOrNot(palmEvent->data.ctlRepeat.value); if ( newPos == m_oldPos ) { // nothing changed since last event