]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/scrolbar.cpp
centralized the handling of border styles; added borders support for wxListBox and...
[wxWidgets.git] / src / mac / classic / scrolbar.cpp
index 70545c7c8d3a20445431a12cc54ee170ede4afe1..3da8ecd289b57b7cde6c09358c52bded306baa51 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:       wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation "scrolbar.h"
-#endif
-
 #include "wx/defs.h"
 
 #ifndef WX_PRECOMP
 #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 ;
 
 // Scrollbar
@@ -102,7 +95,7 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS
 
 void wxScrollBar::Command(wxCommandEvent& event)
 {
-    SetThumbPosition(event.m_commandInt);
+    SetThumbPosition(event.GetInt());
     ProcessCommand(event);
 }