Applied patch to reenable single selection mode.
[wxWidgets.git] / src / mac / carbon / statbox.cpp
index c2d3460d412562abdefae490e5f5f1429d3f8db4..cc29e9b2675a79bb0a32b98546e3e18586fad3d5 100644 (file)
@@ -15,6 +15,8 @@
 
 #include "wx/wxprec.h"
 
+#if wxUSE_STATBOX
+
 #include "wx/statbox.h"
 #include "wx/mac/uma.h"
 
@@ -43,7 +45,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
     
-    m_peer = new wxMacControl() ;
+    m_peer = new wxMacControl(this) ;
     verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") , 
         true /*primary*/ , m_peer->GetControlRefAddr() ) ) ;  
 
@@ -51,3 +53,5 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
     
     return TRUE;
 }
+
+#endif
\ No newline at end of file