-wxFloatingPane::wxFloatingPane(wxWindow* parent,
- wxFrameManager* owner_mgr,
- wxWindowID id /*= -1*/,
- const wxPoint& pos /*= wxDefaultPosition*/,
- const wxSize& size /*= wxDefaultSize*/)
- : wxFloatingPaneBaseClass(parent, id, wxT(""), pos, size,
- wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION |
- wxCLOSE_BOX | wxFRAME_NO_TASKBAR |
- wxFRAME_FLOAT_ON_PARENT | wxCLIP_CHILDREN)
+#ifdef __WXMSW__
+#include "wx/msw/private.h"
+#endif
+
+IMPLEMENT_CLASS(wxAuiFloatingFrame, wxAuiFloatingFrameBaseClass)
+
+wxAuiFloatingFrame::wxAuiFloatingFrame(wxWindow* parent,
+ wxAuiManager* owner_mgr,
+ const wxAuiPaneInfo& pane,
+ wxWindowID id /*= wxID_ANY*/,
+ long style /*=wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION |
+ wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT |
+ wxCLIP_CHILDREN
+ */)
+ : wxAuiFloatingFrameBaseClass(parent, id, wxEmptyString,
+ pane.floating_pos, pane.floating_size,
+ style |
+ (pane.HasCloseButton()?wxCLOSE_BOX:0) |
+ (pane.HasMaximizeButton()?wxMAXIMIZE_BOX:0) |
+ (pane.IsFixed()?0:wxRESIZE_BORDER)
+ )