X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..87dde0b5fcb80e2192df0af481bc63b2f945e54f:/src/mac/carbon/scrolbar.cpp diff --git a/src/mac/carbon/scrolbar.cpp b/src/mac/carbon/scrolbar.cpp index 2db4a175bb..fb7a5311ca 100644 --- a/src/mac/carbon/scrolbar.cpp +++ b/src/mac/carbon/scrolbar.cpp @@ -16,11 +16,13 @@ #include "wx/scrolbar.h" #include "wx/mac/uma.h" +#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) BEGIN_EVENT_TABLE(wxScrollBar, wxControl) END_EVENT_TABLE() +#endif extern ControlActionUPP wxMacLiveScrollbarActionUPP ; @@ -80,9 +82,10 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS if ( UMAGetAppearanceVersion() >= 0x0110 ) { -#if UMA_USE_8_6 + if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress ) + { SetControlViewSize( m_macControl , m_pageSize ) ; -#endif + } } Refresh() ; }