]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/statline.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/statline.h
3 // Purpose: MSW version of wxStaticLine class
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_OS2_STATLINE_H_
12 #define _WX_OS2_STATLINE_H_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLEXPORT wxStaticLine
: public wxStaticLineBase
22 // constructors and pseudo-constructors
24 wxStaticLine( wxWindow
* pParent
25 ,wxWindowID vId
= wxID_ANY
26 ,const wxPoint
& rPos
= wxDefaultPosition
27 ,const wxSize
& rSize
= wxDefaultSize
28 ,long lStyle
= wxLI_HORIZONTAL
29 ,const wxString
& rsName
= wxStaticTextNameStr
32 Create(pParent
, vId
, rPos
, rSize
, lStyle
, rsName
);
35 bool Create( wxWindow
* pParent
36 ,wxWindowID vId
= wxID_ANY
37 ,const wxPoint
& rPos
= wxDefaultPosition
38 ,const wxSize
& rSize
= wxDefaultSize
39 ,long lStyle
= wxLI_HORIZONTAL
40 ,const wxString
& rsName
= wxStaticTextNameStr
43 inline bool IsVertical(void) const { return((GetWindowStyleFlag() & wxLI_VERTICAL
) != 0); }
44 inline static int GetDefaultSize(void) { return 2; }
47 // Overriden base class virtuals
49 inline virtual bool AcceptsFocus(void) const {return FALSE
;}
52 inline wxSize
AdjustSize(const wxSize
& rSize
) const
54 wxSize
vSizeReal( rSize
.x
61 vSizeReal
.x
= GetDefaultSize();
66 vSizeReal
.y
= GetDefaultSize();
71 inline wxSize
DoGetBestSize(void) const { return (AdjustSize(wxDefaultSize
)); }
74 // Usually overridden base class virtuals
76 virtual WXDWORD
OS2GetStyle( long lStyle
81 DECLARE_DYNAMIC_CLASS(wxStaticLine
)
82 }; // end of CLASS wxStaticLine
84 #endif // _WX_OS2_STATLINE_H_