// Inserts an item, returning the index of the new item if successful,
// -1 otherwise.
-// TOD: Should also have some further convenience functions
-// which don't require setting a wxListItem object
long wxListCtrl::InsertItem(wxListItem& info)
{
LV_ITEM item;
bool wxListCtrl::MSWNotify(const WXWPARAM wParam, const WXLPARAM lParam)
{
- wxListEvent event(0, m_windowId);
- int eventType = 0;
+ wxListEvent event(wxEVT_NULL, m_windowId);
+ wxEventType eventType = wxEVT_NULL;
NMHDR *hdr1 = (NMHDR *) lParam;
switch ( hdr1->code )
{
// List event
IMPLEMENT_DYNAMIC_CLASS(wxListEvent, wxCommandEvent)
-wxListEvent::wxListEvent(WXTYPE commandType, int id):
+wxListEvent::wxListEvent(wxEventType commandType, int id):
wxCommandEvent(commandType, id)
{
m_code = 0;