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