X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..9bb50fd0b04c824fc7ba14c0dc4ba4a2a9a1e6ad:/src/motif/spinbutt.cpp diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index ca3a6e2af1..cdded68c3a 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -16,6 +16,10 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#include "wx/defs.h" + +#if wxUSE_SPINBTN + #include "wx/spinbutt.h" #include "wx/spinctrl.h" #include "wx/timer.h" @@ -77,7 +81,7 @@ class wxArrowButton : public wxControl { friend class wxArrowButtonTimer; public: - wxArrowButton( int increment ) + wxArrowButton( int increment ) : m_increment( increment ), m_timer( 0 ) {} @@ -230,7 +234,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id, SetForegroundColour( parent->GetBackgroundColour() ); - return TRUE; + return true; } // ---------------------------------------------------------------------------- @@ -272,12 +276,12 @@ bool wxSpinButton::Create( wxWindow *parent, wxWindowID id, if( !wxControl::Create( parent, id, pos, newSize, style ) ) { - return FALSE; + return false; } SetName(name); - m_windowId = ( id == -1 ) ? NewControlId() : id; + m_windowId = ( id == wxID_ANY ) ? NewControlId() : id; bool isVert = IsVertical(); wxPoint pt1, pt2; @@ -289,7 +293,7 @@ bool wxSpinButton::Create( wxWindow *parent, wxWindowID id, isVert ? wxARROW_DOWN : wxARROW_LEFT, pt2, sz2, -1 ); - return TRUE; + return true; } wxSpinButton::~wxSpinButton() @@ -403,3 +407,5 @@ void wxSpinButton::ChangeForegroundColour() { // TODO } + +#endif // wxUSE_SPINBTN