]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Don't use sunken border for the list control in log dialog.
[wxWidgets.git] / src / msw / listctrl.cpp
index 93eebf755c7d098516c32854aff19456bf5db15c..52bf721d5ee5cb12edad7b0ee562e16d7e35a36e 100644 (file)
@@ -1753,7 +1753,10 @@ long wxListCtrl::InsertItem(const wxListItem& info)
         }
     }
 
         }
     }
 
-    long rv = ListView_InsertItem(GetHwnd(), & item);
+    const long rv = ListView_InsertItem(GetHwnd(), & item);
+
+    // failing to insert the item is really unexpected
+    wxCHECK_MSG( rv != -1, rv, "failed to insert an item in wxListCtrl" );
 
     m_count++;
     wxASSERT_MSG( m_count == ListView_GetItemCount(GetHwnd()),
 
     m_count++;
     wxASSERT_MSG( m_count == ListView_GetItemCount(GetHwnd()),