]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Added wxExpr parser/lexer files which had somehow got lost;
[wxWidgets.git] / src / msw / listctrl.cpp
index 48fe1f2c69b1715b13f8ce25528ab6e08adea81d..5a7242ced46efec06cbaeb00b45cb90c8a70aac4 100644 (file)
@@ -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;