]> git.saurik.com Git - wxWidgets.git/blame - src/msw/statline.cpp
Add some version checks to help compiling on OSX.
[wxWidgets.git] / src / msw / statline.cpp
CommitLineData
c50f1fb9 1/////////////////////////////////////////////////////////////////////////////
57bd4c60 2// Name: src/msw/statline.cpp
c50f1fb9
VZ
3// Purpose: MSW version of wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
6// Version: $Id$
7// Copyright: (c) 1998 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
c50f1fb9
VZ
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
c50f1fb9
VZ
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#include "wx/statline.h"
27
f3c0f9e7
JS
28#if wxUSE_STATLINE
29
57bd4c60
WS
30#ifndef WX_PRECOMP
31 #include "wx/msw/private.h"
32 #include "wx/msw/missing.h"
33#endif
cc4f5ad8 34
c50f1fb9
VZ
35// ============================================================================
36// implementation
37// ============================================================================
38
c50f1fb9
VZ
39// ----------------------------------------------------------------------------
40// wxStaticLine
41// ----------------------------------------------------------------------------
42
cfa822b8
VZ
43bool wxStaticLine::Create(wxWindow *parent,
44 wxWindowID id,
45 const wxPoint& pos,
46 const wxSize& sizeOrig,
47 long style,
48 const wxString &name)
c50f1fb9 49{
cfa822b8 50 wxSize size = AdjustSize(sizeOrig);
f6bcfd97 51
cfa822b8 52 if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
57f4f925 53 return false;
c50f1fb9 54
9a83f860 55 return MSWCreateControl(wxT("STATIC"), wxEmptyString, pos, size);
cfa822b8
VZ
56}
57
58WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
59{
3a01bb1b
VZ
60 // we never have border
61 style &= ~wxBORDER_MASK;
62 style |= wxBORDER_NONE;
63
cfa822b8 64 WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);
c50f1fb9 65
cfa822b8 66 // add our default styles
4676948b
JS
67 msStyle |= SS_SUNKEN | SS_NOTIFY | WS_CLIPSIBLINGS;
68#ifndef __WXWINCE__
69 msStyle |= SS_GRAYRECT ;
70#endif
71
72 return msStyle ;
c50f1fb9 73}
f6bcfd97
BP
74
75#endif // wxUSE_STATLINE