]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statbox.cpp
fixed include dependency
[wxWidgets.git] / src / mac / carbon / statbox.cpp
index 870154ebba917a0cd88953fe0d0b1b6e4c28d7d1..d25be44dabef238a432710dac46b50f67bd37fec 100644 (file)
@@ -43,8 +43,9 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
     
+    m_peer = new wxMacControl() ;
     verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") , 
-        true /*primary*/ , (ControlRef*)&m_macControl ) ) ;  
+        true /*primary*/ , *m_peer ) ) ;  
 
     MacPostControlCreate(pos,size) ;