]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: 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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
20 #pragma implementation "statline.h"
23 // For compilers that support precompilation, includes "wx.h".
24 #include "wx/wxprec.h"
30 #include "wx/statline.h"
34 #include "wx/msw/private.h"
38 #define SS_SUNKEN 0x00001000L
42 #define SS_NOTIFY 0x00000100L
45 // ============================================================================
47 // ============================================================================
49 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
52 style (wxLI_HORIZONTAL)
55 // ----------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------
59 bool wxStaticLine::Create(wxWindow
*parent
,
62 const wxSize
& sizeOrig
,
66 wxSize size
= AdjustSize(sizeOrig
);
68 if ( !CreateControl(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
71 return MSWCreateControl(_T("STATIC"), wxEmptyString
, pos
, size
);
74 WXDWORD
wxStaticLine::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
76 // we never have border
77 style
&= ~wxBORDER_MASK
;
78 style
|= wxBORDER_NONE
;
80 WXDWORD msStyle
= wxControl::MSWGetStyle(style
, exstyle
);
82 // add our default styles
83 msStyle
|= SS_SUNKEN
| SS_NOTIFY
| WS_CLIPSIBLINGS
;
85 msStyle
|= SS_GRAYRECT
;
91 #endif // wxUSE_STATLINE