]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
Always link with expat in monolithic build.
[wxWidgets.git] / src / msw / listbox.cpp
index 69281add2b8f7c109a8204041fd30dd2ee868dce..69565096f7b90a0fd9dc8c3cea7892829375b4fc 100644 (file)
@@ -306,17 +306,11 @@ bool wxListBox::IsSelected(int N) const
 
 void *wxListBox::DoGetItemClientData(unsigned int n) const
 {
-    wxCHECK_MSG( IsValid(n), NULL,
-                 wxT("invalid index in wxListBox::GetClientData") );
-
     return (void *)SendMessage(GetHwnd(), LB_GETITEMDATA, n, 0);
 }
 
 void wxListBox::DoSetItemClientData(unsigned int n, void *clientData)
 {
-    wxCHECK_RET( IsValid(n),
-                 wxT("invalid index in wxListBox::SetClientData") );
-
     if ( ListBox_SetItemData(GetHwnd(), n, clientData) == LB_ERR )
     {
         wxLogDebug(wxT("LB_SETITEMDATA failed"));