// ----------------------------------------------------------------------------
#include "wx/defs.h"
+#include "wx/weakref.h"
#if wxUSE_AUI
class WXDLLIMPEXP_AUI wxAuiFloatingFrame : public wxAuiFloatingFrameBaseClass
{
- friend class wxAuiManager;
-
public:
wxAuiFloatingFrame(wxWindow* parent,
wxAuiManager* owner_mgr,
wxAuiManager* GetOwnerManager() const;
protected:
- void SetOwnerManager(wxAuiManager* owner_mgr);
virtual void OnMoveStart();
virtual void OnMoving(const wxRect& window_rect, wxDirection dir);
virtual void OnMoveFinished();
wxSize m_last_size;
wxDirection m_lastDirection;
- wxAuiManager* m_owner_mgr;
+ wxWeakRef<wxAuiManager> m_owner_mgr;
wxAuiManager m_mgr;
#ifndef SWIG