1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/statline.h
3 // Purpose: MSW version of wxStaticLine class
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_OS2_STATLINE_H_
11 #define _WX_OS2_STATLINE_H_
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxStaticLine
: public wxStaticLineBase
21 // constructors and pseudo-constructors
23 wxStaticLine( wxWindow
* pParent
24 ,wxWindowID vId
= wxID_ANY
25 ,const wxPoint
& rPos
= wxDefaultPosition
26 ,const wxSize
& rSize
= wxDefaultSize
27 ,long lStyle
= wxLI_HORIZONTAL
28 ,const wxString
& rsName
= wxStaticLineNameStr
31 Create(pParent
, vId
, rPos
, rSize
, lStyle
, rsName
);
34 bool Create( wxWindow
* pParent
35 ,wxWindowID vId
= wxID_ANY
36 ,const wxPoint
& rPos
= wxDefaultPosition
37 ,const wxSize
& rSize
= wxDefaultSize
38 ,long lStyle
= wxLI_HORIZONTAL
39 ,const wxString
& rsName
= wxStaticLineNameStr
42 inline bool IsVertical(void) const { return((GetWindowStyleFlag() & wxLI_VERTICAL
) != 0); }
43 inline static int GetDefaultSize(void) { return 2; }
46 // Overridden base class virtuals
48 inline virtual bool AcceptsFocus(void) const {return FALSE
;}
51 inline wxSize
AdjustSize(const wxSize
& rSize
) const
53 wxSize
vSizeReal( rSize
.x
60 vSizeReal
.x
= GetDefaultSize();
65 vSizeReal
.y
= GetDefaultSize();
70 inline wxSize
DoGetBestSize(void) const { return (AdjustSize(wxDefaultSize
)); }
73 // Usually overridden base class virtuals
75 virtual WXDWORD
OS2GetStyle( long lStyle
80 DECLARE_DYNAMIC_CLASS(wxStaticLine
)
81 }; // end of CLASS wxStaticLine
83 #endif // _WX_OS2_STATLINE_H_