1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-02-19 15:50:59 -05:00
|
|
|
// Name: wx/msw/statbox.h
|
1998-05-20 10:12:05 -04:00
|
|
|
// Purpose: wxStaticBox class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-01-15 12:10:34 -05:00
|
|
|
#ifndef _WX_MSW_STATBOX_H_
|
|
|
|
#define _WX_MSW_STATBOX_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// Group box
|
2001-06-26 16:59:19 -04:00
|
|
|
class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-01-31 18:30:33 -05:00
|
|
|
public:
|
1999-02-22 06:01:13 -05:00
|
|
|
wxStaticBox() { }
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
wxStaticBox(wxWindow *parent, wxWindowID id,
|
1999-07-22 19:39:47 -04:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBoxNameStr)
|
1999-01-31 18:30:33 -05:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1999-07-02 18:02:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
1999-07-22 19:39:47 -04:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBoxNameStr);
|
1999-07-02 18:02:05 -04:00
|
|
|
|
2005-03-07 18:41:07 -05:00
|
|
|
/// Implementation only
|
|
|
|
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
|
2005-02-24 03:26:50 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
protected:
|
1999-11-19 16:01:20 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
2001-06-26 16:59:19 -04:00
|
|
|
|
2005-04-02 12:30:04 -05:00
|
|
|
// choose the default border for this window
|
|
|
|
virtual wxBorder GetDefaultBorder() const;
|
|
|
|
|
2005-01-15 12:10:34 -05:00
|
|
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
2005-04-10 11:23:08 -04:00
|
|
|
|
|
|
|
#ifndef __WXWINCE__
|
2005-03-07 18:41:07 -05:00
|
|
|
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
2004-12-12 19:12:37 -05:00
|
|
|
|
2005-04-01 20:17:51 -05:00
|
|
|
// return the region with all the windows inside this static box excluded
|
|
|
|
virtual WXHRGN MSWGetRegionWithoutChildren();
|
|
|
|
|
|
|
|
// remove the parts which are painted by static box itself from the given
|
|
|
|
// region which is embedded in a rectangle (0, 0)-(w, h)
|
|
|
|
virtual void MSWGetRegionWithoutSelf(WXHRGN hrgn, int w, int h);
|
|
|
|
|
2005-04-10 11:23:08 -04:00
|
|
|
// paint the given rectangle with our background brush/colour
|
2005-05-21 03:05:02 -04:00
|
|
|
virtual void PaintBackground(wxDC& dc, const struct tagRECT& rc);
|
2005-04-17 08:58:24 -04:00
|
|
|
// paint the foreground of the static box
|
|
|
|
virtual void PaintForeground(wxDC& dc, const struct tagRECT& rc);
|
2005-04-01 20:17:51 -05:00
|
|
|
|
2005-03-30 10:30:06 -05:00
|
|
|
void OnPaint(wxPaintEvent& event);
|
2005-04-12 04:08:36 -04:00
|
|
|
#endif // !__WXWINCE__
|
2005-01-15 12:10:34 -05:00
|
|
|
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticBox)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
2005-01-15 12:10:34 -05:00
|
|
|
#endif // _WX_MSW_STATBOX_H_
|
|
|
|
|