]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/statline.cpp
3 // Purpose: OS2 version of wxStaticLine class
4 // Author: David Webster
6 // Copyright: (c) 1999 David Webster
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 // For compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
23 #include "wx/statline.h"
29 #include "wx/os2/private.h"
31 // ============================================================================
33 // ============================================================================
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