X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d9fe7b26de338412e6fe34b8a76bfd64d0f265c..05159a2750ed2cc5945a85bc5fc6849ad1a30e75:/src/msw/spinbutt.cpp diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index c676f9d398..662a102242 100644 --- a/src/msw/spinbutt.cpp +++ b/src/msw/spinbutt.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: spinbutt.cpp +// Name: msw/spinbutt.cpp // Purpose: wxSpinButton // Author: Julian Smart // Modified by: @@ -30,18 +30,17 @@ #endif #ifndef WX_PRECOMP - #include "wx/wx.h" +#include "wx/app.h" #endif -// Can't resolve reference to CreateUpDownControl in -// TWIN32, but could probably use normal CreateWindow instead. - #if wxUSE_SPINBTN #include "wx/spinbutt.h" IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent) +// Can't resolve reference to CreateUpDownControl in +// TWIN32, but could probably use normal CreateWindow instead. #if defined(__WIN95__) && !defined(__TWIN32__) #include "wx/msw/private.h" @@ -246,7 +245,7 @@ bool wxSpinButton::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam, bool wxSpinButton::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM *result) { - LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam; + NM_UPDOWN *lpnmud = (NM_UPDOWN *)lParam; if (lpnmud->hdr.hwndFrom != GetHwnd()) // make sure it is the right control return FALSE;