X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0655ad290a99dc0d4e8ea86aec60c7833a53be53..4cb122de97b40f0b6c8896f40847a7aaf762abb5:/src/msw/spinbutt.cpp diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index 9f93deb0b6..e3c8964586 100644 --- a/src/msw/spinbutt.cpp +++ b/src/msw/spinbutt.cpp @@ -32,7 +32,7 @@ #include "wx/spinbutt.h" #include "wx/msw/private.h" -#if !defined(__GNUWIN32__) || defined(__TWIN32__) +#if !defined(__GNUWIN32__) || defined(__TWIN32__) || defined(wxUSE_NORLANDER_HEADERS) #include #endif @@ -150,7 +150,12 @@ bool wxSpinButton::MSWOnScroll(int orientation, WXWORD wParam, bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) { +#ifndef __GNUWIN32__ +#ifdef __BORLANDC__ + LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam; +#else LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam; +#endif wxSpinEvent event(lpnmud->iDelta > 0 ? wxEVT_SCROLL_LINEUP : wxEVT_SCROLL_LINEDOWN, @@ -163,6 +168,9 @@ bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) *result = event.IsAllowed() ? 0 : 1; return processed; +#else + return FALSE; +#endif } bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)