]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
CriticalSection update for OS/2
[wxWidgets.git] / src / msw / spinctrl.cpp
index 1e5ed522668e83575a2e3eb605f658f49383f5e6..5cbac4deda6006b2c748602bbc02ef0c44fe125a 100644 (file)
@@ -33,6 +33,8 @@
     #include "wx/wx.h"
 #endif
 
+#if wxUSE_SPINCTRL
+
 #if defined(__WIN95__)
 
 #include "wx/spinctrl.h"
@@ -205,7 +207,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 +247,7 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
 }
 
 #endif // __WIN95__
+
+#endif
+       // wxUSE_SPINCTRL
+