long ref = GetControlReference( browser ) ;
if ( ref )
{
- wxListBox* list = wxDynamicCast( ref , wxListBox ) ;
+ wxListBox* list = wxDynamicCast( (wxObject*) ref , wxListBox ) ;
for ( size_t i = 0 ; i < list->m_idArray.GetCount() ; ++i )
if ( list->m_idArray[i] == (long) itemID )
{
long ref = GetControlReference( browser ) ;
if ( ref )
{
- wxListBox* list = wxDynamicCast( ref , wxListBox ) ;
+ wxListBox* list = wxDynamicCast( (wxObject*) ref , wxListBox ) ;
for ( size_t i = 0 ; i < list->m_idArray.GetCount() ; ++i )
if ( list->m_idArray[i] == (long) itemID )
{