]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/statline.cpp
3 // Purpose: OS2 version of wxStaticLine class
4 // Author: David Webster
7 // Copyright: (c) 1999 David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
20 #pragma implementation "statline.h"
23 // For compilers that support precompilation, includes "wx.h".
24 #include "wx/wxprec.h"
26 #include "wx/statline.h"
30 #include "wx/os2/private.h"
33 // ============================================================================
35 // ============================================================================
37 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 bool wxStaticLine::Create(
49 , const wxString
& rsName
52 wxSize vSize
= AdjustSize(rSize
);
54 if ( !CreateControl( pParent
63 return OS2CreateControl( _T("STATIC")
69 } // end of wxStaticLine::Create
71 WXDWORD
wxStaticLine::OS2GetStyle(
77 // We never have border
79 lStyle
&= ~wxBORDER_MASK
;
80 lStyle
|= wxBORDER_NONE
;
82 WXDWORD dwStyle
= wxControl::OS2GetStyle( lStyle
86 // Add our default styles
88 return dwStyle
| WS_CLIPSIBLINGS
;
90 #endif // wxUSE_STATLINE