]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
Added files for wxNotebook and wxCocoaNSTabView
[wxWidgets.git] / src / msw / combobox.cpp
index 7c60aa5121b47135b369ad7036e5026d13a9f935..26ef863e24eb805e34acc969e25dfde012b45854 100644 (file)
@@ -581,13 +581,7 @@ void wxComboBox::SetSelection(long from, long to)
       toChar = -1;
     }
 
-    if (
-#ifdef __WIN32__
-    SendMessage(hWnd, CB_SETEDITSEL, (WPARAM)0, (LPARAM)MAKELONG(fromChar, toChar))
-#else // Win16
-    SendMessage(hWnd, CB_SETEDITSEL, (WPARAM)fromChar, (LPARAM)toChar)
-#endif
-        == CB_ERR )
+    if ( SendMessage(hWnd, CB_SETEDITSEL, (WPARAM)0, (LPARAM)MAKELONG(fromChar, toChar)) == CB_ERR )
     {
         wxLogDebug(_T("CB_SETEDITSEL failed"));
     }