]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mac/statlmac.cpp
Fixed DDE memory leaks.
[wxWidgets.git] / src / mac / statlmac.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: generic/statline.cpp
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#ifdef __GNUG__
20 #pragma implementation "statline.h"
21#endif
22
23// For compilers that support precompilation, includes "wx.h".
24#include "wx/wxprec.h"
25
26#ifdef __BORLANDC__
27 #pragma hdrstop
28#endif
29
30#include "wx/statline.h"
31#include "wx/statbox.h"
32
33#include "wx/mac/uma.h"
34
35// ============================================================================
36// implementation
37// ============================================================================
38
39IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
40
41// ----------------------------------------------------------------------------
42// wxStaticLine
43// ----------------------------------------------------------------------------
44
45bool wxStaticLine::Create( wxWindow *parent,
46 wxWindowID id,
47 const wxPoint &pos,
48 const wxSize &size,
49 long style,
50 const wxString &name)
51{
52 if ( !wxStaticLineBase::Create(parent, id, pos, size,
53 style, wxDefaultValidator, name) )
54 return false;
55
56 Rect bounds ;
57 Str255 title ;
58
59 MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
60
61 m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
62 kControlSeparatorLineProc , (long) this ) ;
63
64 MacPostControlCreate() ;
65
66 return TRUE;
67}