#pragma implementation "choice.h"
#endif
-// For compilers that support precompilation, includes "wx.h".
+#include "wx/defs.h"
+
#include "wx/choice.h"
#include "wx/menu.h"
#include "wx/mac/uma.h"
m_datas.Add( NULL ) ;
int index = m_strings.GetCount() - 1 ;
DoSetItemClientData( index , NULL ) ;
- SetControlMaximum( m_macControl , Number()) ;
+ SetControlMaximum( m_macControl , GetCount()) ;
return index ;
}
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
m_strings.Remove( n ) ;
m_datas.Remove( n ) ;
- SetControlMaximum( m_macControl , Number()) ;
+ SetControlMaximum( m_macControl , GetCount()) ;
}
void wxChoice::Clear()