]> git.saurik.com Git - wxWidgets.git/blame - src/msw/statline.cpp
Fix problem with COMDLG_FILTERSPEC declaration with MinGW-w64 4.8.
[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
c50f1fb9 6// Copyright: (c) 1998 Vadim Zeitlin
65571936 7// Licence: wxWindows licence
c50f1fb9
VZ
8/////////////////////////////////////////////////////////////////////////////
9
10// ============================================================================
11// declarations
12// ============================================================================
13
14// ----------------------------------------------------------------------------
15// headers
16// ----------------------------------------------------------------------------
17
c50f1fb9
VZ
18// For compilers that support precompilation, includes "wx.h".
19#include "wx/wxprec.h"
20
21#ifdef __BORLANDC__
22 #pragma hdrstop
23#endif
24
25#include "wx/statline.h"
26
f3c0f9e7
JS
27#if wxUSE_STATLINE
28
57bd4c60
WS
29#ifndef WX_PRECOMP
30 #include "wx/msw/private.h"
31 #include "wx/msw/missing.h"
32#endif
cc4f5ad8 33
c50f1fb9
VZ
34// ============================================================================
35// implementation
36// ============================================================================
37
c50f1fb9
VZ
38// ----------------------------------------------------------------------------
39// wxStaticLine
40// ----------------------------------------------------------------------------
41
cfa822b8
VZ
42bool wxStaticLine::Create(wxWindow *parent,
43 wxWindowID id,
44 const wxPoint& pos,
45 const wxSize& sizeOrig,
46 long style,
47 const wxString &name)
c50f1fb9 48{
cfa822b8 49 wxSize size = AdjustSize(sizeOrig);
f6bcfd97 50
cfa822b8 51 if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
57f4f925 52 return false;
c50f1fb9 53
9a83f860 54 return MSWCreateControl(wxT("STATIC"), wxEmptyString, pos, size);
cfa822b8
VZ
55}
56
57WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
58{
3a01bb1b
VZ
59 // we never have border
60 style &= ~wxBORDER_MASK;
61 style |= wxBORDER_NONE;
62
cfa822b8 63 WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);
c50f1fb9 64
cfa822b8 65 // add our default styles
4676948b
JS
66 msStyle |= SS_SUNKEN | SS_NOTIFY | WS_CLIPSIBLINGS;
67#ifndef __WXWINCE__
68 msStyle |= SS_GRAYRECT ;
69#endif
70
71 return msStyle ;
c50f1fb9 72}
f6bcfd97
BP
73
74#endif // wxUSE_STATLINE