X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0a6b27997bc37c69ebae7e5a6e84d0b1b816970..5cb0e7ad183cc94a6076134d66fd85fabc375c02:/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
 // ===========================================================================