X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..ca7731b7c89693a5bf60b2e259757ece780f8f1a:/src/msw/listctrl.cpp diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 48fe1f2c69..5a7242ced4 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -902,8 +902,6 @@ long wxListCtrl::HitTest(const wxPoint& point, int& flags) // 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; @@ -1050,8 +1048,8 @@ bool wxListCtrl::MSWCommand(const WXUINT cmd, const WXWORD id) 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 ) { @@ -1367,7 +1365,7 @@ static void wxConvertToMSWListItem(const wxListCtrl *ctrl, wxListItem& info, LV_ // 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;