]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
Removed GetAdjustedBestSize().
[wxWidgets.git] / src / msw / combobox.cpp
index 2f3f338f46b432981075b7d92b55478910e75631..c85fcede27c1bdf0b1ee5d97e99c5a10c58dda76 100644 (file)
@@ -263,6 +263,9 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
             // when Enter is pressed
             if ( wParam == VK_RETURN )
             {
+                if (SendMessage(GetHwnd(), CB_GETDROPPEDSTATE, 0, 0))
+                    return false;
+            
                 wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
 
                 const int sel = GetSelection();