// Can't resolve reference to CreateUpDownControl in
// TWIN32, but could probably use normal CreateWindow instead.
+#if wxUSE_SPINBTN
+
#if defined(__WIN95__) && !defined(__TWIN32__)
#include "wx/spinbutt.h"
// size calculation
// ----------------------------------------------------------------------------
-wxSize wxSpinButton::DoGetBestSize()
+wxSize wxSpinButton::DoGetBestSize() const
{
if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 )
{
bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
{
#ifndef __GNUWIN32__
-#ifdef __BORLANDC__
+#if defined(__BORLANDC__) || defined(__WATCOMC__)
LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
-#elif defined(__VISUALC__) && (__VISUALC__ == 1010)
+#elif defined(__VISUALC__) && (__VISUALC__ >= 1000) && (__VISUALC__ < 1020)
LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
#else
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
}
#endif // __WIN95__
+
+#endif
+ // wxUSE_SPINCTN
+