Define _CRT_NONSTDC_NO_WARNINGS for zlib compilation with MSVC.
[wxWidgets.git] / src / osx / carbon / statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/statline.cpp
3 // Purpose: wxStaticLine class
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #include "wx/wxprec.h"
11
12 #ifdef __BORLANDC__
13 #pragma hdrstop
14 #endif
15
16 #include "wx/statline.h"
17
18 #ifndef WX_PRECOMP
19 #include "wx/statbox.h"
20 #endif
21
22 bool wxStaticLine::Create( wxWindow *parent,
23 wxWindowID id,
24 const wxPoint &pos,
25 const wxSize &size,
26 long style,
27 const wxString &name )
28 {
29 if ( !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ) )
30 return false;
31
32 // this is ugly but it's better than nothing:
33 // use a thin static box to emulate static line
34
35 wxSize sizeReal = AdjustSize( size );
36
37 // m_statbox = new wxStaticBox( parent, id, wxT(""), pos, sizeReal, style, name );
38
39 return true;
40 }