]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/statbox.cpp
Remove no longer necessary re-entrancy check, fix function prototype definition for...
[wxWidgets.git] / src / osx / carbon / statbox.cpp
CommitLineData
489468fe 1/////////////////////////////////////////////////////////////////////////////
524c47aa 2// Name: src/osx/carbon/statbox.cpp
489468fe
SC
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"
524c47aa
SC
17#include "wx/osx/private.h"
18
19wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
20 wxWindowMac* parent,
21 wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos,
24 const wxSize& size,
25 long style,
26 long extraStyle)
489468fe 27{
524c47aa 28 Rect bounds = wxMacGetBoundsForControl( wxpeer, pos, size );
489468fe 29
524c47aa 30 wxMacControl* peer = new wxMacControl( wxpeer );
489468fe
SC
31 OSStatus err = CreateGroupBoxControl(
32 MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, CFSTR(""),
524c47aa 33 true /*primary*/, peer->GetControlRefAddr() );
489468fe 34 verify_noerr( err );
524c47aa 35 return peer;
489468fe 36}
489468fe
SC
37#endif // wxUSE_STATBOX
38