X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4e8ff28c5ad0c498ee676a3470e615b6479ba3b..8da1f9a99ee0ff9493cc7845ec13100cdeac431c:/src/mac/carbon/gauge.cpp?ds=sidebyside diff --git a/src/mac/carbon/gauge.cpp b/src/mac/carbon/gauge.cpp index 9371fb247d..6e9ed032f2 100644 --- a/src/mac/carbon/gauge.cpp +++ b/src/mac/carbon/gauge.cpp @@ -15,6 +15,8 @@ #include "wx/gauge.h" +#if wxUSE_GAUGE + #if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl) #endif @@ -36,7 +38,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, wxSize size = s ; /* - if ( size.x == wxDefaultSize.x && size.y == wxDefaultSize.y) + if ( size.x == wxDefaultCoord && size.y == wxDefaultCoord) { size = wxSize( 200 , 16 ) ; } @@ -44,7 +46,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; m_peer = new wxMacControl() ; verify_noerr ( CreateProgressBarControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , - GetValue() , 0 , GetRange() , false /* not indeterminate */ , *m_peer ) ); + GetValue() , 0 , GetRange() , false /* not indeterminate */ , m_peer->GetControlRefAddr() ) ); MacPostControlCreate(pos,size) ; @@ -79,3 +81,5 @@ int wxGauge::GetValue() const return m_gaugePos ; } +#endif // wxUSE_GAUGE +