void OnIconized(wxIconizeEvent& event);
bool HandleActivate(int state, bool minimized, WXHWND activate);
- bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
// override window proc for MDI-specific message processing
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
#if wxUSE_MENUS
// override wxFrameBase function to also look in the active child menu bar
- virtual const wxMenuItem *FindItemInMenuBar(int menuId) const;
- virtual wxMenuItem *MSWFindMenuBarItem(WXWORD id);
+ // and the "Window" menu
+ virtual wxMenuItem *FindItemInMenuBar(int menuId) const;
#endif // wxUSE_MENUS
protected:
+ // override to pass menu/toolbar events to the active child first
+ virtual bool TryBefore(wxEvent& event);
+
#if wxUSE_MENUS_NATIVE
virtual void InternalSetMenuBar();
#endif // wxUSE_MENUS_NATIVE
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
- DECLARE_NO_COPY_CLASS(wxMDIParentFrame)
+ wxDECLARE_NO_COPY_CLASS(wxMDIParentFrame);
};
// ---------------------------------------------------------------------------