#include "wx/spinbutt.h"
#include "wx/msw/private.h"
-#if !defined(__GNUWIN32__) || defined(__TWIN32__)
+#if !defined(__GNUWIN32__) || defined(__TWIN32__) || defined(wxUSE_NORLANDER_HEADERS)
#include <commctrl.h>
#endif
bool wxSpinButton::MSWOnScroll(int orientation, WXWORD wParam,
WXWORD pos, WXHWND control)
{
- wxCHECK_MSG( control, FALSE, _T("scrolling what?") )
+ wxCHECK_MSG( control, FALSE, T("scrolling what?") )
if ( wParam != SB_THUMBPOSITION )
{
bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
{
#ifndef __GNUWIN32__
+#ifdef __BORLANDC__
+ LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
+#elif defined(__VISUALC__) && (__VISUALC__ == 1010)
+ LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
+#else
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
+#endif
wxSpinEvent event(lpnmud->iDelta > 0 ? wxEVT_SCROLL_LINEUP
: wxEVT_SCROLL_LINEDOWN,