]>
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
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"
24 #include "wx/statline.h"
30 #include "wx/os2/private.h"
32 // ============================================================================
34 // ============================================================================
36 // ----------------------------------------------------------------------------
38 // ----------------------------------------------------------------------------
40 bool wxStaticLine::Create(
46 , const wxString
& rsName
49 wxSize vSize
= AdjustSize(rSize
);
51 if ( !CreateControl( pParent
60 if (!OS2CreateControl( wxT("STATIC")
70 vColour
.Set(wxString(wxT("GREY")));
72 LONG lColor
= (LONG
)vColour
.GetPixel();
74 ::WinSetPresParam( m_hWnd
80 } // end of wxStaticLine::Create
82 WXDWORD
wxStaticLine::OS2GetStyle(
88 // We never have border
90 lStyle
&= ~wxBORDER_MASK
;
91 lStyle
|= wxBORDER_NONE
;
93 WXDWORD dwStyle
= wxControl::OS2GetStyle( lStyle
97 // Add our default styles
99 return dwStyle
| WS_CLIPSIBLINGS
;
101 #endif // wxUSE_STATLINE