1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/panel.h
3 // Purpose: wxMSW-specific wxPanel class.
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_MSW_PANEL_H_
11 #define _WX_MSW_PANEL_H_
13 class WXDLLIMPEXP_FWD_CORE wxBrush
;
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxPanel
: public wxPanelBase
24 wxPanel(wxWindow
*parent
,
25 wxWindowID winid
= wxID_ANY
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
29 const wxString
& name
= wxPanelNameStr
)
31 Create(parent
, winid
, pos
, size
, style
, name
);
34 // This is overridden for MSW to return true for all panels that are child
35 // of a window with themed background (such as wxNotebook) which should
36 // show through the child panels.
37 virtual bool HasTransparentBackground();
40 #if WXWIN_COMPATIBILITY_2_8
41 wxDEPRECATED_CONSTRUCTOR(
42 wxPanel(wxWindow
*parent
,
43 int x
, int y
, int width
, int height
,
44 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
45 const wxString
& name
= wxPanelNameStr
)
47 Create(parent
, wxID_ANY
, wxPoint(x
, y
), wxSize(width
, height
), style
, name
);
50 #endif // WXWIN_COMPATIBILITY_2_8
53 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel
);
56 #endif // _WX_MSW_PANEL_H_