X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0a6b27997bc37c69ebae7e5a6e84d0b1b816970..31833fd72f876dac9e2da14f11ca956aea59e59b:/src/os2/mdi.cpp diff --git a/src/os2/mdi.cpp b/src/os2/mdi.cpp index 59a2fc778d..1fccebacb2 100644 --- a/src/os2/mdi.cpp +++ b/src/os2/mdi.cpp @@ -80,9 +80,17 @@ inline bool IsMdiCommandId(int id) return (id >= wxFIRST_MDI_CHILD) && (id <= wxLAST_MDI_CHILD); } +// unpack the parameters of WM_MDIACTIVATE message static void UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam, WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact); +// return the HMENU of the MDI menu +static inline HMENU GetMDIWindowMenu(wxMDIParentFrame *frame) +{ + wxMenu *menu = frame->GetWindowMenu(); + return menu ? GetHmenuOf(menu) : 0; +} + // =========================================================================== // implementation // ===========================================================================