Better fix for duplicate wxContextMenuEvent generation under MSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Jul 2013 20:24:22 +0000 (20:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Jul 2013 20:24:22 +0000 (20:24 +0000)
commitdbd5b2ce42875058a7f109168d7887c95d893d28
tree23f503ec865a77f7201f5e72cf01cb2d30e10ea4
parentbdbdb4d18173951919a62187754af26665e8c677
Better fix for duplicate wxContextMenuEvent generation under MSW.

Fix the bug with multiple wxContextMenuEvent being generated for a single
WM_CONTEXTMENU without breaking context menus for wxTextCtrl (and all the
other native controls). Do this by ensuring that WM_CONTEXTMENU is still
passed to DefWindowProc() if we don't process it instead of just being eaten
completely in any case.

Also add a unit test checking for this bug to ensure it stays fixed.

See #13683.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/window.cpp
tests/events/propagation.cpp