From c55365891877331935a19931fd2d6f145748fa42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 23 Aug 2004 15:45:47 +0000 Subject: [PATCH] Fixed sending events by submenus. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/menu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index eb4ea7cf8f..ac1b1a3e91 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -2411,6 +2411,8 @@ void wxMenuBar::PopupCurrentMenu(bool selectFirst) // item, not to the right of it wxRect rectItem = GetItemRect(m_current); + m_menuShown->SetInvokingWindow(m_frameLast); + m_menuShown->Popup(ClientToScreen(rectItem.GetPosition()), wxSize(0, rectItem.GetHeight()), selectFirst); -- 2.47.2