]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/statlmac.cpp
superfluous embedding API
[wxWidgets.git] / src / osx / carbon / statlmac.cpp
CommitLineData
489468fe 1/////////////////////////////////////////////////////////////////////////////
524c47aa 2// Name: src/osx/carbon/statlmac.cpp
489468fe
SC
3// Purpose: a generic wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
6// Version: $Id$
7// Copyright: (c) 1998 Vadim Zeitlin
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26#if wxUSE_STATLINE
27
28#include "wx/statline.h"
29
30#ifndef WX_PRECOMP
31 #include "wx/statbox.h"
32#endif
33
524c47aa 34#include "wx/osx/private.h"
489468fe
SC
35
36// ============================================================================
37// implementation
38// ============================================================================
39
524c47aa
SC
40wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
41 wxWindowMac* parent,
42 wxWindowID id,
43 const wxPoint& pos,
44 const wxSize& size,
45 long style,
46 long extraStyle)
489468fe 47{
524c47aa
SC
48 Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size ) ;
49 wxMacControl* peer = new wxMacControl(wxpeer) ;
50 verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, peer->GetControlRefAddr() ) ) ;
51 return peer;
489468fe
SC
52}
53
54#endif //wxUSE_STATLINE