else if ( choice->HasClientUntypedData() )
event.SetClientData( choice->GetClientData(n) );
- choice->GetEventHandler()->ProcessEvent(event);
+ choice->HandleWindowEvent(event);
}
}
// wxChoice
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxChoice,wxControl)
+IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
wxChoice::wxChoice()
{
void ** const data = &itemsData[0];
if ( HasClientObjectData() )
- Append(items, wx_reinterpret_cast(wxClientData **, data));
+ Append(items, reinterpret_cast<wxClientData **>(data));
else
Append(items, data);
}