]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
1. coloured buttons seem to work
[wxWidgets.git] / src / msw / spinctrl.cpp
index 1e5ed522668e83575a2e3eb605f658f49383f5e6..27b0b26c2d4c64864b768e42823d405d6dbd69a6 100644 (file)
@@ -33,6 +33,8 @@
     #include "wx/wx.h"
 #endif
 
+#if wxUSE_SPINCTRL
+
 #if defined(__WIN95__)
 
 #include "wx/spinctrl.h"
@@ -48,9 +50,7 @@
 // macros
 // ----------------------------------------------------------------------------
 
-#if !USE_SHARED_LIBRARY
     IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
-#endif
 
 // ----------------------------------------------------------------------------
 // constants
@@ -205,7 +205,7 @@ bool wxSpinCtrl::SetFont(const wxFont& font)
 // size calculations
 // ----------------------------------------------------------------------------
 
-wxSize wxSpinCtrl::DoGetBestSize()
+wxSize wxSpinCtrl::DoGetBestSize() const
 {
     wxSize sizeBtn = wxSpinButton::DoGetBestSize();
     sizeBtn.x += DEFAULT_ITEM_WIDTH + MARGIN_BETWEEN;
@@ -245,3 +245,7 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
 }
 
 #endif // __WIN95__
+
+#endif
+       // wxUSE_SPINCTRL
+