]> git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/statbox.cpp
Another wxOSX/Carbon compilation fix after wxListCtrlBase changes.
[wxWidgets.git] / src / osx / carbon / statbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/statbox.cpp
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13
14 #if wxUSE_STATBOX
15
16 #include "wx/statbox.h"
17 #include "wx/osx/private.h"
18
19 wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
20 wxWindowMac* parent,
21 wxWindowID WXUNUSED(id),
22 const wxString& WXUNUSED(label),
23 const wxPoint& pos,
24 const wxSize& size,
25 long WXUNUSED(style),
26 long WXUNUSED(extraStyle))
27 {
28 Rect bounds = wxMacGetBoundsForControl( wxpeer, pos, size );
29
30 wxMacControl* peer = new wxMacControl( wxpeer );
31 OSStatus err = CreateGroupBoxControl(
32 MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, CFSTR(""),
33 true /*primary*/, peer->GetControlRefAddr() );
34 verify_noerr( err );
35 return peer;
36 }
37 #endif // wxUSE_STATBOX
38