]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/listbox.cpp
Add support for the Windows Testdrive machines, and other improvments.
[wxWidgets.git] / src / os2 / listbox.cpp
index 334fd18f48bfff955857d7c7ef9f2ed13112f8ed..e8a6013682dd3f934cf3bab537ba174cff409663 100644 (file)
@@ -510,9 +510,9 @@ void wxListBox::SetString(unsigned int n, const wxString& rsString)
     void*          pOldData = NULL;
     wxClientData*  pOldObjData = NULL;
 
-    if (m_clientDataItemsType == wxClientData_Void)
+    if ( HasClientUntypedData() )
         pOldData = GetClientData(n);
-    else if (m_clientDataItemsType == wxClientData_Object)
+    else if ( HasClientObjectData() )
         pOldObjData = GetClientObject(n);
 
     //
@@ -660,7 +660,7 @@ bool wxListBox::OS2Command(
         n = -1;
     }
     vEvent.SetInt(n);
-    return GetEventHandler()->ProcessEvent(vEvent);
+    return HandleWindowEvent(vEvent);
 } // end of wxListBox::OS2Command
 
 // ----------------------------------------------------------------------------