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:
Włodzimierz Skiba
2004-08-23 15:45:47 +00:00
parent a2fe01c96d
commit c553658918

View File

@@ -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);