Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / msw / panel.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/panel.h
3 // Purpose: wxMSW-specific wxPanel class.
4 // Author: Vadim Zeitlin
5 // Created: 2011-03-18
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_MSW_PANEL_H_
11 #define _WX_MSW_PANEL_H_
12
13 class WXDLLIMPEXP_FWD_CORE wxBrush;
14
15 // ----------------------------------------------------------------------------
16 // wxPanel
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
20 {
21 public:
22 wxPanel() { }
23
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)
30 {
31 Create(parent, winid, pos, size, style, name);
32 }
33
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();
38
39
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)
46 {
47 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
48 }
49 )
50 #endif // WXWIN_COMPATIBILITY_2_8
51
52 private:
53 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
54 };
55
56 #endif // _WX_MSW_PANEL_H_