#if wxUSE_MDI
#include "wx/frame.h"
+#include "wx/menu.h"
// forward declarations
class WXDLLIMPEXP_FWD_CORE wxMDIParentFrame;
// menu can be NULL to disable the window menu completely
virtual void SetWindowMenu(wxMenu *menu)
{
- delete m_windowMenu;
- m_windowMenu = menu;
+ if ( menu != m_windowMenu )
+ {
+ delete m_windowMenu;
+ m_windowMenu = menu;
+ }
}
#endif // wxUSE_MENUS
// level windows too
virtual bool IsTopLevel() const { return false; }
+ // In all ports keyboard navigation must stop at MDI child frame level and
+ // can't cross its boundary. Indicate this by overriding this function to
+ // return true.
+ virtual bool IsTopNavigationDomain() const { return true; }
+
protected:
wxMDIParentFrame *m_mdiParent;
};