]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statbox.cpp
wxExecuteData is a struct, not class (warning fix)
[wxWidgets.git] / src / mac / carbon / statbox.cpp
index 870154ebba917a0cd88953fe0d0b1b6e4c28d7d1..87ec656d78230a2914bcdc5faddc61cc5f71ad2f 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->GetControlRefAddr() ) ) ;  
 
     MacPostControlCreate(pos,size) ;