]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/statline.h
fixed MSVC6 compiler warning
[wxWidgets.git] / include / wx / univ / statline.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/statline.h
3// Purpose: wxStaticLine class for wxUniversal
4// Author: Vadim Zeitlin
5// Created: 28.06.99
6// Version: $Id$
7// Copyright: (c) 1999 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
1e6feb95
VZ
9/////////////////////////////////////////////////////////////////////////////
10
12028905 11#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
a3870b2f 12 #pragma interface "univstatline.h"
1e6feb95
VZ
13#endif
14
15#ifndef _WX_UNIV_STATLINE_H_
16#define _WX_UNIV_STATLINE_H_
17
18class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
19{
20public:
21 // constructors and pseudo-constructors
22 wxStaticLine() { }
23
24 wxStaticLine(wxWindow *parent,
25 const wxPoint &pos,
26 wxCoord length,
27 long style = wxLI_HORIZONTAL)
28 {
29 Create(parent, -1, pos,
30 style & wxLI_VERTICAL ? wxSize(-1, length)
31 : wxSize(length, -1),
32 style);
33 }
34
35 wxStaticLine(wxWindow *parent,
36 wxWindowID id,
37 const wxPoint &pos = wxDefaultPosition,
38 const wxSize &size = wxDefaultSize,
39 long style = wxLI_HORIZONTAL,
40 const wxString &name = wxStaticTextNameStr )
41 {
42 Create(parent, id, pos, size, style, name);
43 }
44
45 bool Create(wxWindow *parent,
46 wxWindowID id,
47 const wxPoint &pos = wxDefaultPosition,
48 const wxSize &size = wxDefaultSize,
49 long style = wxLI_HORIZONTAL,
50 const wxString &name = wxStaticTextNameStr );
51
52protected:
53 virtual void DoDraw(wxControlRenderer *renderer);
54
55private:
56 DECLARE_DYNAMIC_CLASS(wxStaticLine)
57};
58
59#endif // _WX_UNIV_STATLINE_H_
60