]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/statline.cpp
a10a33176a47b3fc491126c410a537b557ca4e70
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/msw/statline.cpp
3 // Purpose: MSW version of wxStaticLine class
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
26 #include "wx/statline.h"
31 #include "wx/msw/private.h"
32 #include "wx/msw/missing.h"
35 // ============================================================================
37 // ============================================================================
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 bool wxStaticLine::Create(wxWindow
*parent
,
46 const wxSize
& sizeOrig
,
50 wxSize size
= AdjustSize(sizeOrig
);
52 if ( !CreateControl(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
55 return MSWCreateControl(wxT("STATIC"), wxEmptyString
, pos
, size
);
58 WXDWORD
wxStaticLine::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
60 // we never have border
61 style
&= ~wxBORDER_MASK
;
62 style
|= wxBORDER_NONE
;
64 WXDWORD msStyle
= wxControl::MSWGetStyle(style
, exstyle
);
66 // add our default styles
67 msStyle
|= SS_SUNKEN
| SS_NOTIFY
| WS_CLIPSIBLINGS
;
69 msStyle
|= SS_GRAYRECT
;
75 #endif // wxUSE_STATLINE