This message replaces the menu of a multiple document interface (MDI) frame window, the Window pop-up menu, or both.
Parameter |
Description |
wParam |
Not used. |
|
lParam |
Contains in its low-order word the menu handle (HMENU) of the new frame-window menu, and contains in its high-order word the menu handle of the new Window pop-up menu. If either word is zero, the corresponding menu is not changed. |
The return value is the handle of the frame-window menu replaced by this message.
After sending this message, an application must call the DrawMenuBar function to update the menu bar.
If this message replaces the Window pop-up menu, MDI child-window menu items are removed from the previous Window menu and added to the new Window pop-up menu.
If an MDI child window is maximized and this message replaces the MDI frame-window menu, the System menu and restore controls are removed from the previous frame-window menu and added to the new menu.