]> git.saurik.com Git - wxWidgets.git/blame - src/os2/statline.cpp
no significant changes
[wxWidgets.git] / src / os2 / statline.cpp
CommitLineData
a66ebb5b
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: msw/statline.cpp
3// Purpose: OS2 version of wxStaticLine class
4// Author: David Webster
5// Created: 10/23/99
6// Version: $Id$
7// Copyright: (c) 1999 David Webster
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
aa213887
SN
19#ifdef __GNUG__
20 #pragma implementation "statline.h"
21#endif
22
a66ebb5b
DW
23// For compilers that support precompilation, includes "wx.h".
24#include "wx/wxprec.h"
25
26#include "wx/statline.h"
27
28#if wxUSE_STATLINE
29
30#include "wx/os2/private.h"
31#include "wx/log.h"
32
33// ============================================================================
34// implementation
35// ============================================================================
36
37IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
38
39// ----------------------------------------------------------------------------
40// wxStaticLine
41// ----------------------------------------------------------------------------
42
3c299c3a
DW
43bool wxStaticLine::Create(
44 wxWindow* pParent
45, wxWindowID vId
46, const wxPoint& rPos
47, const wxSize& rSize
48, long lStyle
49, const wxString& rsName
50)
a66ebb5b 51{
b9b1d6c8 52 wxSize vSize = AdjustSize(rSize);
3c299c3a 53
b9b1d6c8
DW
54 if ( !CreateControl( pParent
55 ,vId
56 ,rPos
57 ,vSize
58 ,lStyle
59 ,wxDefaultValidator
60 ,rsName
61 ))
a66ebb5b 62 return FALSE;
b9b1d6c8
DW
63 return OS2CreateControl( _T("STATIC")
64 ,_T("")
65 ,rPos
66 ,vSize
67 ,lStyle
68 );
3c299c3a 69} // end of wxStaticLine::Create
a66ebb5b 70
b9b1d6c8
DW
71WXDWORD wxStaticLine::OS2GetStyle(
72 long lStyle
73, WXDWORD* pdwExstyle
74) const
75{
76 //
77 // We never have border
78 //
79 lStyle &= ~wxBORDER_MASK;
80 lStyle |= wxBORDER_NONE;
81
82 WXDWORD dwStyle = wxControl::OS2GetStyle( lStyle
83 ,pdwExstyle
84 );
85 //
86 // Add our default styles
87 //
88 return dwStyle | WS_CLIPSIBLINGS;
89}
3c299c3a 90#endif // wxUSE_STATLINE