delete now does remove the item in correct synch from m_datas and m_strings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2001-06-09 09:11:45 +00:00
parent 53e3052c3c
commit 9dd11f90ad
2 changed files with 6 additions and 4 deletions

View File

@ -91,7 +91,8 @@ void wxChoice::Delete(int n)
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
m_strings.Remove( n ) ;
SetControlMaximum( m_macControl , Number()) ;
m_datas.Remove( n ) ;
SetControlMaximum( m_macControl , Number()) ;
}
void wxChoice::Clear()
@ -104,7 +105,7 @@ void wxChoice::Clear()
}
m_strings.Empty() ;
m_datas.Empty() ;
SetControlMaximum( m_macControl , 0 ) ;
SetControlMaximum( m_macControl , 0 ) ;
}
void wxChoice::Free()

View File

@ -91,7 +91,8 @@ void wxChoice::Delete(int n)
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
m_strings.Remove( n ) ;
SetControlMaximum( m_macControl , Number()) ;
m_datas.Remove( n ) ;
SetControlMaximum( m_macControl , Number()) ;
}
void wxChoice::Clear()
@ -104,7 +105,7 @@ void wxChoice::Clear()
}
m_strings.Empty() ;
m_datas.Empty() ;
SetControlMaximum( m_macControl , 0 ) ;
SetControlMaximum( m_macControl , 0 ) ;
}
void wxChoice::Free()