bool set_menu(handle window, handle menu)
This function assigns a new menu to a window.
handle window
The handle of the window.
handle menu
The handle of the menu to be assigned. If null is specified, the current menu is removed.
bool
true | The function succeeded. |
false | The call failed. |
The new menu is redrawn automatically.
The menu being replaced is not automatically destroyed.