]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
applied patch for compilation with gcc 3.0
[wxWidgets.git] / src / msw / combobox.cpp
index 67cfabde1bcb6b5988375035dfb0810d08a377c7..fafda5dd76996655adddea010c129dfdabb31d64 100644 (file)
@@ -190,7 +190,7 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
     {
         case WM_CHAR:
             return HandleChar(wParam, lParam, TRUE /* isASCII */);
-                       
+
         case WM_KEYDOWN:
             return HandleKeyDown(wParam, lParam);
 
@@ -487,19 +487,6 @@ void wxComboBox::SetSelection(long from, long to)
     }
 }
 
-wxSize wxComboBox::DoGetBestSize() const
-{
-    // the choice calculates the horz size correctly, but not the vertical
-    // component: correct it
-    wxSize size = wxChoice::DoGetBestSize();
-
-    int cx, cy;
-    wxGetCharSize(GetHWND(), &cx, &cy, &GetFont());
-    size.y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy);
-
-    return size;
-}
-
 #endif
  // wxUSE_COMBOBOX