don't send EVT_CHOICE events while the dropdown is opened for consistency with the other platforms

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-12 19:43:27 +00:00
parent bc50a2ae95
commit d77d8c0719

View File

@@ -647,6 +647,9 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
break;
case CBN_SELCHANGE:
// don't generate any events while the dropdown is opened as the
// selection is not final yet
if ( m_lastAcceptedSelection == wxID_NONE )
{
const int n = GetSelection();