// 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();
// skip wxChoice version as it would generate its own events for
// CBN_SELENDOK
- return wxControl::MSWCommand(param, id);
+ return true;
}
WXHWND wxComboBox::GetEditHWND() const