X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53b982112d951a0c77d58c1f6916a551e8bccd73..6344162a81f74b3fbab0803405eebc0c0b83e797:/samples/widgets/slider.cpp?ds=sidebyside diff --git a/samples/widgets/slider.cpp b/samples/widgets/slider.cpp index 15dcf5c207..b0f1fa8d3e 100644 --- a/samples/widgets/slider.cpp +++ b/samples/widgets/slider.cpp @@ -28,6 +28,7 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/bitmap.h" #include "wx/button.h" #include "wx/checkbox.h" #include "wx/radiobox.h" @@ -43,6 +44,7 @@ #include "wx/sizer.h" #include "widgets.h" +#if wxUSE_SLIDER #include "icons/slider.xpm" // ---------------------------------------------------------------------------- @@ -388,8 +390,8 @@ void SliderWidgetsPage::CreateSlider() if ( m_sizerSlider->GetChildren().GetCount() ) { // we have 2 spacers, remove them too - m_sizerSlider->Remove( 0u ); - m_sizerSlider->Remove( 0u ); + m_sizerSlider->Remove( 0 ); + m_sizerSlider->Remove( 0 ); } delete m_slider; @@ -601,3 +603,5 @@ void SliderWidgetsPage::OnSlider(wxScrollEvent& event) event.GetPosition()); } +#endif + // wxUSE_SLIDER