panel.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #ifndef _WX_MSW_PANEL_H_
  10. #define _WX_MSW_PANEL_H_
  11. class WXDLLIMPEXP_FWD_CORE wxBrush;
  12. // ----------------------------------------------------------------------------
  13. // wxPanel
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
  16. {
  17. public:
  18. wxPanel() { }
  19. wxPanel(wxWindow *parent,
  20. wxWindowID winid = wxID_ANY,
  21. const wxPoint& pos = wxDefaultPosition,
  22. const wxSize& size = wxDefaultSize,
  23. long style = wxTAB_TRAVERSAL | wxNO_BORDER,
  24. const wxString& name = wxPanelNameStr)
  25. {
  26. Create(parent, winid, pos, size, style, name);
  27. }
  28. // This is overridden for MSW to return true for all panels that are child
  29. // of a window with themed background (such as wxNotebook) which should
  30. // show through the child panels.
  31. virtual bool HasTransparentBackground();
  32. #if WXWIN_COMPATIBILITY_2_8
  33. wxDEPRECATED_CONSTRUCTOR(
  34. wxPanel(wxWindow *parent,
  35. int x, int y, int width, int height,
  36. long style = wxTAB_TRAVERSAL | wxNO_BORDER,
  37. const wxString& name = wxPanelNameStr)
  38. {
  39. Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
  40. }
  41. )
  42. #endif // WXWIN_COMPATIBILITY_2_8
  43. private:
  44. wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
  45. };
  46. #endif // _WX_MSW_PANEL_H_