X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6474416b2ec2a63ebc28548733d93bbe5aded70d..1d62a8b4251a2ca0d3057cef3c082d45e4e71bdd:/src/msw/spinbutt.cpp diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index 51a32f9814..6cc04c468f 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" @@ -151,7 +153,7 @@ wxSpinButton::~wxSpinButton() // size calculation // ---------------------------------------------------------------------------- -wxSize wxSpinButton::DoGetBestSize() +wxSize wxSpinButton::DoGetBestSize() const { if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 ) { @@ -240,3 +242,7 @@ bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id) } #endif // __WIN95__ + +#endif + // wxUSE_SPINCTN +