// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "listbox.h"
#endif
+#include "wx/wxprec.h"
+
#include "wx/app.h"
#include "wx/listbox.h"
#include "wx/button.h"
wxListBox::~wxListBox()
{
- m_peer->SetReference( NULL ) ;
+ m_peer->SetReference( 0 ) ;
FreeData() ;
// avoid access during destruction
if ( m_macList )
n = -1;
}
- event.m_commandInt = n;
+ event.SetInt(n);
GetEventHandler()->ProcessEvent(event);
}
event.SetClientData( GetClientData(line) );
event.SetString( GetString(line) );
- event.m_commandInt = line ;
+ event.SetInt(line);
GetEventHandler()->ProcessEvent(event);
}