]>
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 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
22 #include "wx/statline.h"
26 #include "wx/os2/private.h"
29 // ============================================================================
31 // ============================================================================
33 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
35 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
39 bool wxStaticLine::Create(
45 , const wxString
& rsName
48 wxSize vSize
= AdjustSize(rSize
);
50 if ( !CreateControl( pParent
59 if (!OS2CreateControl( wxT("STATIC")
69 vColour
.Set(wxString(wxT("GREY")));
71 LONG lColor
= (LONG
)vColour
.GetPixel();
73 ::WinSetPresParam( m_hWnd
79 } // end of wxStaticLine::Create
81 WXDWORD
wxStaticLine::OS2GetStyle(
87 // We never have border
89 lStyle
&= ~wxBORDER_MASK
;
90 lStyle
|= wxBORDER_NONE
;
92 WXDWORD dwStyle
= wxControl::OS2GetStyle( lStyle
96 // Add our default styles
98 return dwStyle
| WS_CLIPSIBLINGS
;
100 #endif // wxUSE_STATLINE