RemoveChild added for correct disposal of scrollbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2002-04-11 15:31:58 +00:00
parent a5b7374f31
commit abda578832
2 changed files with 20 additions and 0 deletions

View File

@ -1072,6 +1072,16 @@ void wxWindowMac::MacPaintBorders( int left , int top )
}
}
void wxWindowMac::RemoveChild( wxWindowBase *child )
{
if ( child == m_hScrollBar )
m_hScrollBar = NULL ;
if ( child == m_vScrollBar )
m_vScrollBar = NULL ;
wxWindowBase::RemoveChild( child ) ;
}
// New function that will replace some of the above.
void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
int range, bool refresh)

View File

@ -1072,6 +1072,16 @@ void wxWindowMac::MacPaintBorders( int left , int top )
}
}
void wxWindowMac::RemoveChild( wxWindowBase *child )
{
if ( child == m_hScrollBar )
m_hScrollBar = NULL ;
if ( child == m_vScrollBar )
m_vScrollBar = NULL ;
wxWindowBase::RemoveChild( child ) ;
}
// New function that will replace some of the above.
void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
int range, bool refresh)