]>
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: wxWidgets licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_OS2_STATLINE_H_
12 #define _WX_OS2_STATLINE_H_
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class WXDLLEXPORT wxStaticLine
: public wxStaticLineBase
26 // constructors and pseudo-constructors
28 wxStaticLine( wxWindow
* pParent
30 ,const wxPoint
& rPos
= wxDefaultPosition
31 ,const wxSize
& rSize
= wxDefaultSize
32 ,long lStyle
= wxLI_HORIZONTAL
33 ,const wxString
& rsName
= wxStaticTextNameStr
36 Create(pParent
, vId
, rPos
, rSize
, lStyle
, rsName
);
39 bool Create( wxWindow
* pParent
41 ,const wxPoint
& rPos
= wxDefaultPosition
42 ,const wxSize
& rSize
= wxDefaultSize
43 ,long lStyle
= wxLI_HORIZONTAL
44 ,const wxString
& rsName
= wxStaticTextNameStr
47 inline bool IsVertical(void) const { return((GetWindowStyleFlag() & wxLI_VERTICAL
) != 0); }
48 inline static int GetDefaultSize(void) { return 2; }
51 // Overriden base class virtuals
53 inline virtual bool AcceptsFocus(void) const {return FALSE
;}
56 inline wxSize
AdjustSize(const wxSize
& rSize
) const
58 wxSize
vSizeReal( rSize
.x
65 vSizeReal
.x
= GetDefaultSize();
70 vSizeReal
.y
= GetDefaultSize();
75 inline wxSize
DoGetBestSize(void) const { return (AdjustSize(wxDefaultSize
)); }
78 // Usually overridden base class virtuals
80 virtual WXDWORD
OS2GetStyle( long lStyle
85 DECLARE_DYNAMIC_CLASS(wxStaticLine
)
86 }; // end of CLASS wxStaticLine
88 #endif // _WX_OS2_STATLINE_H_