]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/scrolbar.cpp
oops, typo leading to compilation problem fixed
[wxWidgets.git] / src / mac / carbon / scrolbar.cpp
index 2db4a175bb25a42339c81534f792deb339ef20f5..fb7a5311ca5939eeff049e04a5823b58471f8a04 100644 (file)
 #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() ;
 }