Move wxMSW wxMenu::GetWindow() down to wxMenuBase.
GetInvokingWindow() can only be used for the popup menus which have the invoking window, so add a new function which can be used to get the window associated with any kind of menu in all ports -- it already existed in wxMSW but is needed elsewhere too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -978,15 +978,6 @@ bool wxMenu::MSWCommand(WXUINT WXUNUSED(param), WXWORD id_)
|
||||
return true;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// other
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
wxWindow *wxMenu::GetWindow() const
|
||||
{
|
||||
return GetMenuBar() ? GetMenuBar()->GetFrame() : GetInvokingWindow();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Menu Bar
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user