if ( bounds.bottom <= bounds.top )
bounds.bottom = bounds.top + 100 ;
- m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , "\p" , true , 0 , 0 , 1,
- kControlGroupBoxTextTitleProc , (long) this ) ;
+ m_peer = new wxMacControl() ;
+
+ verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") ,
+ true /*primary*/ , *m_peer ) ) ;
for (i = 0; i < n; i++)
{