git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3749
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void SetFocus();
virtual bool AcceptsFocus() const;
virtual void SetFocus();
virtual bool AcceptsFocus() const;
- virtual bool Reparent( wxWindow *newParent );
+ virtual bool Reparent( wxWindowBase *newParent );
virtual void WarpPointer(int x, int y);
virtual void CaptureMouse();
virtual void WarpPointer(int x, int y);
virtual void CaptureMouse();
virtual void SetFocus();
virtual bool AcceptsFocus() const;
virtual void SetFocus();
virtual bool AcceptsFocus() const;
- virtual bool Reparent( wxWindow *newParent );
+ virtual bool Reparent( wxWindowBase *newParent );
virtual void WarpPointer(int x, int y);
virtual void CaptureMouse();
virtual void WarpPointer(int x, int y);
virtual void CaptureMouse();
return m_acceptsFocus && wxWindowBase::AcceptsFocus();
}
return m_acceptsFocus && wxWindowBase::AcceptsFocus();
}
-bool wxWindow::Reparent( wxWindow *newParent )
+bool wxWindow::Reparent( wxWindowBase *newParentBase )
{
wxCHECK_MSG( (m_widget != NULL), FALSE, _T("invalid window") );
{
wxCHECK_MSG( (m_widget != NULL), FALSE, _T("invalid window") );
- wxWindow *oldParent = m_parent;
+ wxWindow *oldParent = m_parent,
+ *newParent = (wxWindow *)newParentBase;
if ( !wxWindowBase::Reparent(newParent) )
return FALSE;
if ( !wxWindowBase::Reparent(newParent) )
return FALSE;
return m_acceptsFocus && wxWindowBase::AcceptsFocus();
}
return m_acceptsFocus && wxWindowBase::AcceptsFocus();
}
-bool wxWindow::Reparent( wxWindow *newParent )
+bool wxWindow::Reparent( wxWindowBase *newParentBase )
{
wxCHECK_MSG( (m_widget != NULL), FALSE, _T("invalid window") );
{
wxCHECK_MSG( (m_widget != NULL), FALSE, _T("invalid window") );
- wxWindow *oldParent = m_parent;
+ wxWindow *oldParent = m_parent,
+ *newParent = (wxWindow *)newParentBase;
if ( !wxWindowBase::Reparent(newParent) )
return FALSE;
if ( !wxWindowBase::Reparent(newParent) )
return FALSE;