]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/panel.h
a0617200782c5596c744665ac25ecb4a67af4bf3
[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 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MSW_PANEL_H_
12 #define _WX_MSW_PANEL_H_
13
14 // ----------------------------------------------------------------------------
15 // wxPanel
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
19 {
20 public:
21 wxPanel() { }
22
23 wxPanel(wxWindow *parent,
24 wxWindowID winid = wxID_ANY,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
27 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
28 const wxString& name = wxPanelNameStr)
29 {
30 Create(parent, winid, pos, size, style, name);
31 }
32
33 // This is overridden for MSW to return true for all panels that are child
34 // of a window with themed background (such as wxNotebook) which should
35 // show through the child panels.
36 virtual bool HasTransparentBackground();
37
38
39 #ifdef WXWIN_COMPATIBILITY_2_8
40 wxDEPRECATED_CONSTRUCTOR(
41 wxPanel(wxWindow *parent,
42 int x, int y, int width, int height,
43 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
44 const wxString& name = wxPanelNameStr)
45 {
46 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
47 }
48 )
49 #endif // WXWIN_COMPATIBILITY_2_8
50
51 private:
52 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
53 };
54
55 #endif // _WX_MSW_PANEL_H_