]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/choice.cpp
honour min/max size in wxMGL's wxWindow::DoSetSize
[wxWidgets.git] / src / os2 / choice.cpp
index 0393f574e0d24b417f3bb335628ecb285dad6621..a39235977d1c236824aa990416d41ef5424fc6ec 100644 (file)
@@ -190,18 +190,17 @@ void wxChoice::SetString(
 {
     SHORT                           nIndexType = 0;
 
-    ::WinSendMsg(WinUtil_GetHwnd(), LM_DELETEITEM, (MPARAM)n, 0);
+    ::WinSendMsg(GetHwnd(), LM_DELETEITEM, (MPARAM)n, 0);
 
-
-    if (m_lWindowStyle & winLB_SORT)
+    if (m_windowStyle & wxLB_SORT)
         nIndexType = LIT_SORTASCENDING;
     else
         nIndexType = LIT_END;
-    lIndex = (YInt32)::WinSendMsg( WinUtil_GetHwnd()
-                                  ,LM_INSERTITEM
-                                  ,(MPARAM)nIndexType
-                                  ,(MPARAM)rsStr.Data()
-                                 );
+    ::WinSendMsg( GetHwnd()
+                 ,LM_INSERTITEM
+                 ,(MPARAM)nIndexType
+                 ,(MPARAM)rsStr.c_str()
+                );
 } // end of wxChoice::SetString
 
 wxString wxChoice::GetString(