]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/choice.cpp
Removed deprecated parser.o from cocoa.t, reran tmake
[wxWidgets.git] / src / os2 / choice.cpp
index 88fff750fb200e064abcbf8a1798da481dc4d72c..5ae8def9d95b1fb354d45f41c700eca51a168941 100644 (file)
@@ -185,6 +185,16 @@ void wxChoice::SetString(
 )
 {
     SHORT                           nIndexType = 0;
+    void*                           pData;
+
+    if ( m_clientDataItemsType != wxClientData_None )
+    {
+        pData = DoGetItemClientData(n);
+    }
+    else // no client data
+    {
+        pData = NULL;
+    }
 
     ::WinSendMsg(GetHwnd(), LM_DELETEITEM, (MPARAM)n, 0);
 
@@ -197,6 +207,13 @@ void wxChoice::SetString(
                  ,(MPARAM)nIndexType
                  ,(MPARAM)rsStr.c_str()
                 );
+
+    if (pData)
+    {
+        DoSetItemClientData( n
+                            ,pData
+                           );
+    }
 } // end of wxChoice::SetString
 
 wxString wxChoice::GetString(