Use wxMenu::GetWindow() instead of GetInvokingWindow() in SendEvent().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Apr 2010 15:07:55 +0000 (15:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Apr 2010 15:07:55 +0000 (15:07 +0000)
commit7739f9c947aa1d7ad2a0c70a112fed820f909d96
treee9eb93107bd217634a44ed00754d531d62ebf194
parent341d8cb2cfd80d288f596b65a41d7578cd13ead3
Use wxMenu::GetWindow() instead of GetInvokingWindow() in SendEvent().

This simplifies the code as we don't need to walk the menu hierarchy upwards
any more (GetInvokingWindow() does it now) and also makes it work for all
menus, not just the popup ones.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/menucmn.cpp