]>
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 | |
2bda0e17 | 15 | // Group box |
1e6feb95 | 16 | class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase |
2bda0e17 | 17 | { |
06b57134 | 18 | public: |
bfc6fde4 | 19 | wxStaticBox() { } |
2bda0e17 | 20 | |
06b57134 | 21 | wxStaticBox(wxWindow *parent, wxWindowID id, |
c49245f8 VZ |
22 | const wxString& label, |
23 | const wxPoint& pos = wxDefaultPosition, | |
24 | const wxSize& size = wxDefaultSize, | |
25 | long style = 0, | |
26 | const wxString& name = wxStaticBoxNameStr) | |
06b57134 VZ |
27 | { |
28 | Create(parent, id, label, pos, size, style, name); | |
29 | } | |
4438caf4 | 30 | |
06b57134 | 31 | bool Create(wxWindow *parent, wxWindowID id, |
c49245f8 VZ |
32 | const wxString& label, |
33 | const wxPoint& pos = wxDefaultPosition, | |
34 | const wxSize& size = wxDefaultSize, | |
35 | long style = 0, | |
36 | const wxString& name = wxStaticBoxNameStr); | |
4438caf4 | 37 | |
58385af0 VZ |
38 | /// Implementation only |
39 | virtual void GetBordersForSizer(int *borderTop, int *borderOther) const; | |
6aa01033 | 40 | |
6f02a879 VZ |
41 | virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; |
42 | ||
a047aff2 JS |
43 | // returns true if the platform should explicitly apply a theme border |
44 | virtual bool CanApplyThemeBorder() const { return false; } | |
45 | ||
bfc6fde4 | 46 | protected: |
f68586e5 | 47 | virtual wxSize DoGetBestSize() const; |
1e6feb95 | 48 | |
9f769708 JS |
49 | // choose the default border for this window |
50 | virtual wxBorder GetDefaultBorder() const; | |
51 | ||
c3732409 | 52 | #ifndef __WXWINCE__ |
6f02a879 | 53 | public: |
58385af0 | 54 | virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); |
b04093c9 | 55 | |
6f02a879 | 56 | protected: |
3b6e5fb3 VZ |
57 | // return the region with all the windows inside this static box excluded |
58 | virtual WXHRGN MSWGetRegionWithoutChildren(); | |
59 | ||
60 | // remove the parts which are painted by static box itself from the given | |
61 | // region which is embedded in a rectangle (0, 0)-(w, h) | |
62 | virtual void MSWGetRegionWithoutSelf(WXHRGN hrgn, int w, int h); | |
63 | ||
c3732409 | 64 | // paint the given rectangle with our background brush/colour |
9527eca5 | 65 | virtual void PaintBackground(wxDC& dc, const struct tagRECT& rc); |
21c6080d JS |
66 | // paint the foreground of the static box |
67 | virtual void PaintForeground(wxDC& dc, const struct tagRECT& rc); | |
3b6e5fb3 | 68 | |
eba99da4 | 69 | void OnPaint(wxPaintEvent& event); |
a5de8d41 | 70 | #endif // !__WXWINCE__ |
e31e6ea7 | 71 | |
fc7a2a60 | 72 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticBox) |
2bda0e17 KB |
73 | }; |
74 | ||
e31e6ea7 VZ |
75 | #endif // _WX_MSW_STATBOX_H_ |
76 |