Fixed sending events by submenus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2411,6 +2411,8 @@ void wxMenuBar::PopupCurrentMenu(bool selectFirst)
|
|||||||
// item, not to the right of it
|
// item, not to the right of it
|
||||||
wxRect rectItem = GetItemRect(m_current);
|
wxRect rectItem = GetItemRect(m_current);
|
||||||
|
|
||||||
|
m_menuShown->SetInvokingWindow(m_frameLast);
|
||||||
|
|
||||||
m_menuShown->Popup(ClientToScreen(rectItem.GetPosition()),
|
m_menuShown->Popup(ClientToScreen(rectItem.GetPosition()),
|
||||||
wxSize(0, rectItem.GetHeight()),
|
wxSize(0, rectItem.GetHeight()),
|
||||||
selectFirst);
|
selectFirst);
|
||||||
|
|||||||
Reference in New Issue
Block a user