Hide combobox popup when it is hidden itself in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2012 18:40:20 +0000 (18:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2012 18:40:20 +0000 (18:40 +0000)
commite911dd0a5abd10c32d6cce4cff44e1cb06c3036b
tree4ad26cb8ab265b8cd5cad58338c7c133bcf721b3
parenta24fb9f847872e6ab2edf4be3e258245cbd8f20c
Hide combobox popup when it is hidden itself in wxMSW.

It was possible to hide the main part of a combobox control but keep its popup
shown and this notably happened in wxGrid when TAB was pressed while a
wxChoice cell editor was dropped down.

Avoid this Cheshire combobox syndrome by explicitly dismissing the popup when
a combobox is hidden.

Closes #3113.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/choice.h
src/msw/choice.cpp