]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/msw/statline.cpp
3 // Purpose: MSW version of wxStaticLine class
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 // For compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
25 #include "wx/statline.h"
30 #include "wx/msw/private.h"
31 #include "wx/msw/missing.h"
34 // ============================================================================
36 // ============================================================================
38 // ----------------------------------------------------------------------------
40 // ----------------------------------------------------------------------------
42 bool wxStaticLine::Create(wxWindow
*parent
,
45 const wxSize
& sizeOrig
,
49 wxSize size
= AdjustSize(sizeOrig
);
51 if ( !CreateControl(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
54 return MSWCreateControl(wxT("STATIC"), wxEmptyString
, pos
, size
);
57 WXDWORD
wxStaticLine::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
59 // we never have border
60 style
&= ~wxBORDER_MASK
;
61 style
|= wxBORDER_NONE
;
63 WXDWORD msStyle
= wxControl::MSWGetStyle(style
, exstyle
);
65 // add our default styles
66 msStyle
|= SS_SUNKEN
| SS_NOTIFY
| WS_CLIPSIBLINGS
;
68 msStyle
|= SS_GRAYRECT
;
74 #endif // wxUSE_STATLINE