]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
8008807e | 2 | // Name: wx/msw/statbox.h |
2bda0e17 KB |
3 | // Purpose: wxStaticBox class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
65571936 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
e31e6ea7 VZ |
12 | #ifndef _WX_MSW_STATBOX_H_ |
13 | #define _WX_MSW_STATBOX_H_ | |
2bda0e17 | 14 | |
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
222594ea | 16 | #pragma interface "statbox.h" |
2bda0e17 KB |
17 | #endif |
18 | ||
2bda0e17 | 19 | // Group box |
1e6feb95 | 20 | class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase |
2bda0e17 | 21 | { |
06b57134 | 22 | public: |
bfc6fde4 | 23 | wxStaticBox() { } |
2bda0e17 | 24 | |
06b57134 | 25 | wxStaticBox(wxWindow *parent, wxWindowID id, |
c49245f8 VZ |
26 | const wxString& label, |
27 | const wxPoint& pos = wxDefaultPosition, | |
28 | const wxSize& size = wxDefaultSize, | |
29 | long style = 0, | |
30 | const wxString& name = wxStaticBoxNameStr) | |
06b57134 VZ |
31 | { |
32 | Create(parent, id, label, pos, size, style, name); | |
33 | } | |
4438caf4 | 34 | |
06b57134 | 35 | bool Create(wxWindow *parent, wxWindowID id, |
c49245f8 VZ |
36 | const wxString& label, |
37 | const wxPoint& pos = wxDefaultPosition, | |
38 | const wxSize& size = wxDefaultSize, | |
39 | long style = 0, | |
40 | const wxString& name = wxStaticBoxNameStr); | |
4438caf4 | 41 | |
58385af0 VZ |
42 | /// Implementation only |
43 | virtual void GetBordersForSizer(int *borderTop, int *borderOther) const; | |
6aa01033 | 44 | |
bfc6fde4 | 45 | protected: |
f68586e5 | 46 | virtual wxSize DoGetBestSize() const; |
1e6feb95 | 47 | |
9f769708 JS |
48 | // choose the default border for this window |
49 | virtual wxBorder GetDefaultBorder() const; | |
50 | ||
e31e6ea7 | 51 | virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; |
58385af0 | 52 | virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); |
b04093c9 | 53 | |
3b6e5fb3 VZ |
54 | // return the region with all the windows inside this static box excluded |
55 | virtual WXHRGN MSWGetRegionWithoutChildren(); | |
56 | ||
57 | // remove the parts which are painted by static box itself from the given | |
58 | // region which is embedded in a rectangle (0, 0)-(w, h) | |
59 | virtual void MSWGetRegionWithoutSelf(WXHRGN hrgn, int w, int h); | |
60 | ||
61 | // paint the given rectangle with our background colour | |
62 | void PaintBackground(wxDC& dc, const struct tagRECT& rc); | |
63 | ||
eba99da4 | 64 | void OnPaint(wxPaintEvent& event); |
e31e6ea7 | 65 | |
fc7a2a60 | 66 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticBox) |
2bda0e17 KB |
67 | }; |
68 | ||
e31e6ea7 VZ |
69 | #endif // _WX_MSW_STATBOX_H_ |
70 |