X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cdf89abb10990c7f0152aabc464425a5478157f..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/msw/spinbutt.cpp?ds=sidebyside diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index aeb70b374d..b443d1b062 100644 --- a/src/msw/spinbutt.cpp +++ b/src/msw/spinbutt.cpp @@ -35,6 +35,8 @@ // 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" @@ -211,7 +213,7 @@ bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) #ifndef __GNUWIN32__ #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; @@ -240,3 +242,7 @@ bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id) } #endif // __WIN95__ + +#endif + // wxUSE_SPINCTN +